]> git.mxchange.org Git - fba.git/blob - templates/views/scoreboard.html
bf5852df0d919fa7027d1fa26abad8ea2f111cdb
[fba.git] / templates / views / scoreboard.html
1 {% extends "base.html" %}
2
3 {% block title %}scoreboard - {% if software %}TOP {{software}} used software{% elif originator %}TOP {{originator}} scripts{% elif reference %}TOP {{reference}} referencing instances{% elif blocked %}TOP {{blocked}} deferated instances{% elif blockers %}TOP {{blockers}} deferating instances{% endif %}{% endblock %}
4
5 {% block header %}
6     {% if blockers %}
7         <h1>Top {{blockers}} defederating instances</h1>
8     {% elif blocked %}
9         <h1>Top {{blocked}} defederated instances</h1>
10     {% elif reference %}
11         <h1>Top {{reference}} referencing instances</h1>
12     {% elif software %}
13         <h1>Top {{software}} used software</h1>
14     {% elif originator %}
15         <h1>TOP {{originator}} scripts</h1>
16     {% elif error_code %}
17         <h1>TOP {{error_code}} error codes</h1>
18     {% endif %}
19 {% endblock %}
20
21 {% block content %}
22     <div class="scoreboard">
23         <table>
24             <thead>
25                 <th>№</th>
26                 <th>{% if software %}Software{% elif error_code %}Error code{% else %}Instance{% endif %}</th>
27                 <th>{% if reference %}References{% elif software or error_code %}Total{% else %}Blocks{% endif %}</th>
28             </thead>
29
30             <tbody>
31             {% for entry in scores %}
32                 <tr>
33                     <td>{{loop.index}}</td>
34                     <td>
35                         {% if software or originator or error_code %}
36                             {{entry['domain']}}
37                         {% elif entry['domain'] == None %}
38                             -
39                         {% else %}
40                             <a href="{{base_url}}/top?{% if blockers %}reverse{% elif blocked or reference %}domain{% endif %}={{entry['domain']}}" rel="nofollow noopener noreferrer">{{entry['domain']}}</a>&nbsp;
41                             <a class="listlink" href="https://{{entry['domain']}}" rel="external" target="_blank">↗</a>
42                         {% endif %}
43                     </td>
44                     <td>{{entry['highscore']}}</td>
45                 </tr>
46             {% endfor %}
47             </tbody>
48         </table>
49     </div>
50 {% endblock %}
51
52 {% block footer %}
53     {% if error_code %}
54         <h2>Please note to error codes:</h2>
55         <ul>
56             <li>Error code 999 is fake and covers a lot of reasons why the domain/instance is not reachable. Mostly that the domain is not resolvable or the server refused connection.</li>
57         </ul>
58     {% endif %}
59     <a href="{{base_url}}/">Index</a> /
60     {{ super() }}
61 {% endblock %}