]> 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                             <a href="https://{{block['blocker']}}" rel="nofollow noopener noreferrer">{{block['blocker']}}</a>
42                             {% if reason or domain %}<a class="listlink" href="{{base_url}}/top?reverse={{block['blocker']}}">↘</a>{% endif %}
43                         </td>
44                         <td>
45                             <a href="https://{{domain or block['blocked']}}" rel="nofollow noopener noreferrer">{{block['blocked']}}</a>
46                             {% if reason or reverse %}<a class="listlink" href="{{base_url}}/top?domain={{domain or block['blocked']}}">↘</a>{% endif %}
47                         </td>
48                         <td>{{block['reason']}}</td>
49                         <td>{{block['first_seen']}}</td>
50                         <td>{{block['last_seen']}}</td>
51                     </tr>
52                 {% endfor %}
53                 </tbody>
54             </table>
55         </div>
56     {% endfor %}
57 {% endblock %}
58 {% block footer %}
59     <a href="{{base_url}}/">Index</a> /
60     {{ super() }}
61 {% endblock %}