]> 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 == '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>First added</th>
48             <th>Last updated</th>
49         </thead>
50
51         <tbody>
52         {% for row in domainlist %}
53             <tr>
54                 <td>
55                     {% with domain=row['domain'] %}
56                     {% include "widgets/links.html" %}
57                     {% endwith %}
58                 </td>
59                 <td>
60                     {% with domain=row['origin'] %}
61                     {% include "widgets/links.html" %}
62                     {% endwith %}
63                 </td>
64                 <td>
65                     {% with mode='software', amount=amount, value=row['software'] %}
66                     {% include "widgets/list_links.html" %}
67                     {% endwith %}
68                 </td>
69                 <td>
70                     {% with mode='detection_mode', amount=amount, value=row['detection_mode'] %}
71                     {% include "widgets/list_links.html" %}
72                     {% endwith %}
73                 </td>
74                 <td><code>{{row['command']}}</code></td>
75                 <td>{{row['total_peers']}}</td>
76                 <td>{{row['total_blocks']}}</td>
77                 <td>{{row['first_seen']}}</td>
78                 <td>{{row['last_updated']}}</td>
79             </tr>
80         {% endfor %}
81         </tbody>
82     </table>
83 {% endblock %}
84
85 {% block footer %}
86     <div class="notice">
87         <h3>Please note:</h3>
88         <ul>
89             <li>Total peer and block count are much lower than you might find on the individual instance.</li>
90             <li>This has the simple reason that this instance count does not include blacklisted instances.</li>
91         </ul>
92     </div>
93
94     <a href="{{base_url}}/">Index</a> /
95     {{ super() }}
96 {% endblock %}