]> 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 domain %} - Instances that block {{domain}}{% elif reverse %} - Instances that are blocked by {{reverse}}{% endif %}{% endblock %}
4
5 {% block rss %}
6     {{ super() }}
7     {% if domain %}
8         <link rel="alternate" type="application/rss+xml" title="RSS Feed for blocked domain {{domain}}" href="{{base_url}}/rss?domain={{domain}}" />
9     {% elif reverse %}
10         <link rel="alternate" type="application/rss+xml" title="RSS Feed for blocking domain {{reverse}}" href="{{base_url}}/rss?reverse={{reverse}}" />
11     {% endif %}
12 {% endblock %}
13
14 {% block header %}
15     {% if reason %}
16         <h1>Instances that use "{{reason}}" in their reason</h1>
17     {% elif reverse %}
18         <h1>Instances that are blocked by {{reverse}}</h1>
19     {% elif domain %}
20         <h1>Instances that block {{domain}}</h1>
21     {% endif %}
22 {% endblock %}
23
24 {% block content %}
25     {% for block_level in blocks %}
26         <div class="block_level" id="{{block_level}}">
27             <h2>{{block_level}} ({{blocks[block_level]|length}})</h2>
28             <table>
29                 <thead>
30                     <th>Blocker</th>
31                     <th>{% if block_level == 'accept' %}Accepted{% else %}Blocked{% endif %}</th>
32                     <th>Reason</th>
33                     <th>First added</th>
34                     <th>Last seen</th>
35                 </thead>
36
37                 <tbody>
38                 {% for block in blocks[block_level] %}
39                     <tr>
40                         <td>
41                             {% with domain=block['blocker'] %}
42                             {% include "widgets/links.tpl" %}
43                             {% endwith %}
44                         </td>
45                         <td>
46                             {% with domain=block['blocked'] %}
47                             {% include "widgets/links.tpl" %}
48                             {% endwith %}
49                         </td>
50                         <td>{{block['reason']}}</td>
51                         <td>{{block['first_seen']}}</td>
52                         <td>{{block['last_seen']}}</td>
53                     </tr>
54                 {% endfor %}
55                 </tbody>
56             </table>
57         </div>
58     {% endfor %}
59 {% endblock %}
60 {% block footer %}
61     <a href="{{base_url}}/">Index</a> /
62     {{ super() }}
63 {% endblock %}