Show avg podcast update duration in admin area
[mygpo.git] / mygpo / administration / templates / admin / hostinfo.html
blobad273f682e4296f52f897c9e45e2b347d9e53472
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load time %}
4 {% load podcasts %}
6 {% load menu %}
7 {% block mainmenu %}{{ "/admin/"|main_menu }}{% endblock %}
8 {% block sectionmenu %}{{ "/admin/"|section_menu:"Admin" }}{% endblock %}
10 {% block title %}{% trans "Host Information" %}{% endblock %}
12 {% block header %}
13 <h1>{% trans "Host Information" %}</h1>
14 {% endblock %}
16 {% block content %}
18 <table class="list">
20 <tr>
21 <td><strong>{% trans "mygpo Version" %}</strong></td>
22 <td>
23 {% if git_commit %}
24 <a href="https://github.com/gpodder/mygpo/commit/{{ git_commit }}">{{ git_commit }} {{ git_msg }}</a>
25 {% else %}
26 could not be determined &mdash; run <strong><tt>git show HEAD</tt></strong> in the base directory
27 {% endif %}
28 </td>
29 </tr>
31 <tr>
32 <td><strong>{% trans "Base Directory" %}</strong></td>
33 <td><tt>{{ base_dir }}</tt></td>
34 </tr>
36 <tr>
37 <td><strong>{% trans "Hostname" %}</strong></td>
38 <td><tt>{{ hostname }}</tt></td>
39 </tr>
41 <tr>
42 <td><strong>{% trans "Django Version" %}</strong></td>
43 <td><tt>{{ django_version|join:"." }}</tt></td>
44 </tr>
46 <tr>
47 <td><strong>{% trans "Feed Update Queue" %}</strong></td>
48 <td>
49 {% if feed_queue_status >= 0 %}
50 {{ feed_queue_status|floatformat:0 }} {% trans "min ahead" %}
51 {% else %}
52 {{ feed_queue_status|floatformat:0 }} {% trans "min behind" %}
53 {% endif %}
54 </td>
55 </tr>
57 <tr>
58 <td>
59 <strong>
60 {% trans "Number of podcasts with outdated search index" %}
61 </strong>
62 </td>
63 <td class="numeric">{{ num_index_outdated }}</td>
64 </tr>
66 <tr>
67 <td>
68 <strong>
69 {% trans "Average podcast update duration" %}
70 </strong>
71 </td>
72 <td class="numeric">{{ avg_podcast_update_duration.total_seconds|format_duration}}</td>
73 </tr>
75 <tr>
76 <td><strong>{% trans "Scheduled Celery Tasks" %}</strong></td>
77 <td><tt>{{ num_celery_tasks }}</tt></td>
78 </tr>
80 </table>
82 {% endblock %}