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