]> git.mxchange.org Git - fba.git/blob - templates/views/list.html
a3852979a4ea25e448f119e14524897c43f6ae78
[fba.git] / templates / views / list.html
1 {% extends "base.html" %}
2
3 {% block title %}{% if mode == 'detection_mode' %} - Detection mode {{value}}{% elif mode == 'software' %} - Used software {{value}}{% elif mode == 'command' %} - Command {{value}}{% endif %}{% endblock %}
4
5 {% block header %}
6     {% if mode == 'detection_mode' %}
7         <h1>Instances detected by method {{value}}</h1>
8     {% elif mode == 'software' %}
9         <h1>Instances using software {{value}}</h1>
10     {% elif mode == 'command' %}
11         <h1>Instances found by command {{value}}</h1>
12     {% endif %}
13 {% endblock %}
14
15 {% block content %}
16     {% if amount == found %}
17         <div class="notice">
18             <h3>Maximum amount reached!</h3>
19             <div>
20                 Please note that the maximum allowed amount is only returned, the blocker/blocked/reason might be more.
21                 Paging support is not finished yet.
22             </div>
23         </div>
24     {% endif %}
25
26     <table class="table-with-rows">
27         <thead>
28             <th>Domain</th>
29             <th>Origin</th>
30             <th>Software</th>
31             <th>Detection mode</th>
32             <th>Command</th>
33             <th>First added</th>
34             <th>Last seen</th>
35         </thead>
36
37         <tbody>
38         {% for row in domainlist %}
39                 <tr>
40                     <td>
41                         {% with domain=row['domain'] %}
42                         {% include "widgets/links.html" %}
43                         {% endwith %}
44                     </td>
45                     <td>
46                         {% with domain=row['origin'] %}
47                         {% include "widgets/links.html" %}
48                         {% endwith %}
49                     </td>
50                     <td>
51                         {% with mode='software',  amount=amount, value=row['software'] %}
52                         {% include "widgets/list_links.html" %}
53                         {% endwith %}
54                     </td>
55                     <td>
56                         {% with mode='detection_mode',  amount=amount, value=row['detection_mode'] %}
57                         {% include "widgets/list_links.html" %}
58                         {% endwith %}
59                     </td>
60                     <td><code>{{row['command']}}</code></td>
61                     <td>{{row['first_seen']}}</td>
62                     <td>{{row['last_seen']}}</td>
63                 </tr>
64         {% endfor %}
65         </tbody>
66     </table>
67 {% endblock %}
68
69 {% block footer %}
70     <a href="{{base_url}}/">Index</a> /
71     {{ super() }}
72 {% endblock %}