]> git.mxchange.org Git - fba.git/blob - templates/scoreboard.html
Continued:
[fba.git] / templates / scoreboard.html
1 <!DOCTYPE html>
2 <head>
3     <title>fedi-block-api</title>
4     <link rel="alternate" type="application/rss+xml" title="RSS Feed for latest blocked instances" href="{{base_url}}/rss" />
5     <style>
6         body {
7             background-color: #000022;
8             color: #ffffff;
9             text-align: center;
10             font-family: sans;
11         }
12         pre {
13             margin: 0px;
14         }
15         .block_level {
16             background-color: #1c1c3c;
17             width: 80em;
18             padding: 5px;
19             margin: auto;
20             margin-top: 10px;
21         }
22         .scoreboard {
23             background-color: #1c1c3c;
24             width: 40em;
25             padding: 5px;
26             margin: auto;
27             margin-top: 10px;
28         }
29         table {
30             width: 100%;
31             background-color: #2d2d4d;
32             border-spacing: 0px;
33         }
34         table tr:nth-of-type(2n) {
35             background-color: #1c1c3c;
36         }
37         table td {
38             padding: 4px;
39         }
40         .block_level table td:nth-of-type(1), .block_level table td:nth-of-type(2),
41         .block_level table td:nth-of-type(4), .block_level table td:nth-of-type(5) {
42             white-space: nowrap;
43         }
44         .block {
45             background-color: #2d2d4d;
46             padding: 5px;
47             margin: 5px;
48         }
49         a {
50             color: #ffffff;
51         }
52         a.listlink {
53             text-decoration: none;
54             font-size: 0.8em;
55         }
56         .info {
57             margin-top: 25px;
58         }
59         input[type="text"], input[type="submit"] {
60             padding: 5px;
61             border-radius: 5px;
62             color: white;
63             background: #445;
64             font-size: 16px;
65         }
66
67         input[type="text"]:hover {
68             border-color: #f08;
69         }
70
71         input[type="submit"] {
72             cursor: pointer;
73         }
74
75         input[type="submit"]:hover {
76             border-color: #f08;
77         }
78
79         span[title] {
80             text-decoration: underline dotted;
81         }
82     </style>
83 </head>
84 <body>
85     {% if blockers %}
86         <h1>Top {{blockers}} defederating instances</h1>
87     {% elif blocked %}
88         <h1>Top {{blocked}} defederated instances</h1>
89     {% elif reference %}
90         <h1>Top {{reference}} referencing instances</h1>
91     {% elif software %}
92         <h1>Top {{software}} used software</h1>
93     {% endif %}
94     <div class="scoreboard">
95         <table>
96             <th>№</th>
97             <th>{% if software %}Software{% else %}Instance{% endif %}</th>
98             <th>{% if reference %}References{% elif software %}Total{% else %}Blocks{% endif %}</th>
99             {% for entry in scores %}
100                 <tr>
101                     <td>{{loop.index}}</td>
102                     <td>
103                         {% if software %}
104                             {{entry['domain']}}
105                         {% elif originator %}
106                             <pre>{{entry['domain']}}</pre>
107                         {% elif entry['domain'] == None %}
108                             -
109                         {% else %}
110                             <a href="{{base_url}}/?{% if blockers %}reverse{% elif blocked or reference %}domain{% endif %}={{entry['domain']}}" rel="nofollow noopener noreferrer">{{entry['domain']}}</a>&nbsp;
111                             <a class="listlink" href="https://{{entry['domain']}}" rel="external" target="_blank">↗</a>
112                         {% endif %}
113                     </td>
114                     <td>{{entry['highscore']}}</td>
115                 </tr>
116             {% endfor %}
117         </table>
118     </div>
119     <div class="info">
120         <a href="{{base_url}}/">Index</a> /
121         source code: <a href="https://git.mxchange.org/?p=fba.git;a=summary" rel="source" target="_blank">git.mxchange.org</a><br /><br />
122         {{slogan}}
123     </div>
124 </body>
125 </html>