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