aboutsummaryrefslogtreecommitdiff
path: root/data/templates/status.htm
blob: 725530731bc36ed50919ae08f4a94492beb36d75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{% extends "base.htm" %}

{% block meta %}
 <meta name="robots" value="noindex,nofollow"/>
{% endblock %}

{%block title %}phinde status - {% endblock %}

{% block maincontent %}
<div class="container">
 <div class="row">
  <div class="span6 offset3">

<h1>phinde status</h1>
<table class="table">
 <thead>
  <tr>
   <th>Group</th>
   <th>Item</th>
   <th style="text-align: right">Number</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <th rowspan="2">Elasticsearch</th>
   <td>Documents</td>
   <td style="text-align: right">{{esStatus.documents_human}}</td>
  </tr>
  <tr>
   <td>Index size</td>
   <td style="text-align: right">{{esStatus.size_human}}</td>
  </tr>

  <tr class="{%if 0 != gearStatus.tasks %}warning{%endif%}">
   <th rowspan="3">Gearman</th>
   <td>Open tasks</td>
   <td style="text-align: right">{{gearStatus.tasks}}</td>
  </tr>
  <tr>
   <td>Tasks being processed</td>
   <td style="text-align: right">{{gearStatus.processing}}</td>
  </tr>
  <tr class="{%if 0 >= gearStatus.workers %}error{%endif%}">
   <td>Task workers</td>
   <td style="text-align: right">{{gearStatus.workers}}</td>
  </tr>

  <tr>
   <th rowspan="{{subCount|length + 1}}">
    <a href="https://www.w3.org/TR/websub/">WebSub</a>
    subscriptions
   </th>
   <td>Total</td>
   <td style="text-align: right">{{subSum}}</td>
  </tr>
  {% for key, number in subCount %}
  <tr class="{%if key == 'subscribing' and number > 0 %}warning{%endif%}">
   <td>{{key}}</td>
   <td style="text-align: right">{{number}}</td>
  </tr>
  {% endfor %}
 </tbody>
</table>

  </div>
 </div>
</div>
{% endblock %}