]> git.mxchange.org Git - fba.git/blob - templates/views/top.html
Continued:
[fba.git] / templates / views / top.html
1 {% extends "base.html" %}
2
3 {% block title %}{% if mode == 'domain' %} - Instances that block {{value}}{% elif mode == 'reverse' %} - Instances that are blocked by {{value}}{% elif mode == 'reason' %} - Instances having block reason {{value}}{% endif %}{% endblock %}
4
5 {% block rss %}
6     {{ super() }}
7     {% if mode == 'domain' %}
8         <link rel="alternate" type="application/rss+xml" title="RSS Feed for blocked domain {{value}}" href="{{base_url}}/rss?domain={{value}}" />
9     {% elif mode == 'reverse' %}
10         <link rel="alternate" type="application/rss+xml" title="RSS Feed for blocking domain {{value}}" href="{{base_url}}/rss?reverse={{value}}" />
11     {% endif %}
12 {% endblock %}
13
14 {% block header %}
15     {% if mode == 'reason' %}
16         <h1>Instances that use "{{value}}" in their reason</h1>
17     {% elif mode == 'reverse' %}
18         <h1>Instances that are blocked by {{value}}</h1>
19     {% elif mode == 'domain' %}
20         <h1>Instances that block {{value}}</h1>
21     {% endif %}
22 {% endblock %}
23
24 {% block content %}
25     {% if amount == found %}
26         <div class="notice">
27             <h3>Maximum amount reached!</h3>
28             <div>
29                 Please note that the maximum allowed amount is only returned, the blocker/blocked/reason might be more.
30                 Paging support is not finished yet.
31             </div>
32         </div>
33     {% endif %}
34
35     {% for block_level in blocklist %}
36         <div class="block_level" id="{{block_level}}">
37             <h2>{{block_level}} ({{blocklist[block_level]|length}})</h2>
38             <table>
39                 <thead>
40                     <th>Blocker</th>
41                     <th>{% if block_level == 'accept' %}Accepted{% else %}Blocked{% endif %}</th>
42                     <th>Reason</th>
43                     <th>First added</th>
44                     <th>Last seen</th>
45                 </thead>
46
47                 <tbody>
48                 {% for block in blocklist[block_level] %}
49                     <tr>
50                         <td>
51                             {% with domain=block['blocker'] %}
52                             {% include "widgets/links.html" %}
53                             {% endwith %}
54                         </td>
55                         <td>
56                             {% with domain=block['blocked'] %}
57                             {% include "widgets/links.html" %}
58                             {% endwith %}
59                         </td>
60                         <td>{{block['reason']}}</td>
61                         <td>{{block['first_seen']}}</td>
62                         <td>{{block['last_seen']}}</td>
63                     </tr>
64                 {% endfor %}
65                 </tbody>
66             </table>
67         </div>
68     {% endfor %}
69 {% endblock %}
70 {% block footer %}
71     <a href="{{base_url}}/">Index</a> /
72     {{ super() }}
73 {% endblock %}