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