]> git.mxchange.org Git - fba.git/blob - templates/views/list.html
1e48ebdbf3a36b7862891b08e5f3277cf1916788
[fba.git] / templates / views / list.html
1 {% extends "base.html" %}
2
3 {% block title %}
4     {% if mode == 'detection_mode' %} - Detection mode {{value}}
5     {% elif mode == 'software' %} - Used software {{value}}
6     {% elif mode == 'command' %} - Command {{value}}
7     {% elif mode == 'recently' %} - {{amount}} recently added instances
8     {% endif %}
9 {% endblock %}
10
11 {% block header %}
12     {% if mode == 'detection_mode' %}
13         <h1>Instances detected by method {{value}}</h1>
14     {% elif mode == 'software' %}
15         <h1>Instances using software {{value}}</h1>
16     {% elif mode == 'command' %}
17         <h1>Instances found by command {{value}}</h1>
18     {% elif mode == 'origin' %}
19         <h1>Instances originated from {{value}}</h1>
20     {% elif mode == 'recently' %}
21         <h1>{{amount}} recently added instances</h1>
22     {% else %}
23         <h1 style="color: red">mode={{mode}} not supported</h1>
24     {% endif %}
25 {% endblock %}
26
27 {% block content %}
28     {% if amount == found %}
29         <div class="notice">
30             <h3>Maximum amount reached!</h3>
31             <div>
32                 Please note that the maximum allowed amount is only returned, the blocker/blocked/reason might be more.
33                 Paging support is not finished yet.
34             </div>
35         </div>
36     {% endif %}
37
38     <table class="table-with-rows">
39         <thead>
40             <th>Domain</th>
41             <th>Origin</th>
42             <th>Software</th>
43             <th>Detection mode</th>
44             <th>Command</th>
45             <th>Total peers</th>
46             <th>Total blocks</th>
47             <th>Response time</th>
48             <th>First added</th>
49             <th>Last updated</th>
50         </thead>
51
52         <tbody>
53         {% for row in domainlist %}
54             <tr>
55                 <td>
56                     {% with domain=row['domain'] %}
57                     {% include "widgets/links.html" %}
58                     {% endwith %}
59                 </td>
60                 <td>
61                     {% with domain=row['origin'] %}
62                     {% include "widgets/links.html" %}
63                     {% endwith %}
64                 </td>
65                 <td>
66                     {% with mode='software', amount=amount, value=row['software'] %}
67                     {% include "widgets/list_links.html" %}
68                     {% endwith %}
69                 </td>
70                 <td>
71                     {% with mode='detection_mode', amount=amount, value=row['detection_mode'] %}
72                     {% include "widgets/list_links.html" %}
73                     {% endwith %}
74                 </td>
75                 <td><code>{{row['command']}}</code></td>
76                 <td>{{row['total_peers']}}</td>
77                 <td>{{row['total_blocks']}}</td>
78                 <td>{{'%0.2f'|format(row['last_response_time']|float)}}</td>
79                 <td>{{row['first_seen']}}</td>
80                 <td>{{row['last_updated']}}</td>
81             </tr>
82         {% endfor %}
83         </tbody>
84     </table>
85 {% endblock %}
86
87 {% block footer %}
88     <div class="notice">
89         <h3>Please note:</h3>
90         <ul>
91             <li>Total peer and block count are much lower than you might find on the individual instance.</li>
92             <li>This has the simple reason that this instance count does not include blacklisted instances.</li>
93         </ul>
94     </div>
95
96     <a href="{{base_url}}/">Index</a> /
97     {{ super() }}
98 {% endblock %}