]> git.mxchange.org Git - fba.git/blob - templates/views/scoreboard.html
Continued:
[fba.git] / templates / views / scoreboard.html
1 {% extends "base.html" %}
2
3 {% block title %}
4     Scoreboard -
5     {% if mode == 'software' %}TOP {{amount}} used software
6     {% elif mode == 'detection_mode' %}Detection mode statistics
7     {% elif mode == 'block_level' %}TOP {{amount}} block level statistics
8     {% elif mode == 'obfuscation' %}Obfuscation statistics
9     {% elif mode == 'obfuscator' %}TOP {{amount}} obfuscating software
10     {% elif mode == 'avg_peers' %}TOP {{amount}} average peer count
11     {% elif mode == 'avg_blocks' %}TOP {{amount}} average block count
12     {% elif mode == 'command' %}TOP {{amount}} commands
13     {% elif mode == 'error_code' %}TOP {{amount}} error codes
14     {% elif mode == 'reference' %}TOP {{amount}} referencing instances
15     {% elif mode == 'blocked' %}TOP {{amount}} deferated instances
16     {% elif mode == 'blocker' %}TOP {{amount}} deferating instances
17     {% endif %}
18 {% endblock %}
19
20 {% block header %}
21     {% if mode == 'blocker' %}
22         <h1>Top {{amount}} defederating instances</h1>
23     {% elif mode == 'blocked' %}
24         <h1>Top {{amount}} defederated instances</h1>
25     {% elif mode == 'reference' %}
26         <h1>Top {{amount}} referencing instances</h1>
27     {% elif mode == 'software' %}
28         <h1>Top {{amount}} used software</h1>
29     {% elif mode == 'command' %}
30         <h1>TOP {{amount}} commands</h1>
31     {% elif mode == 'error_code' %}
32         <h1>TOP {{amount}} error codes</h1>
33     {% elif mode == 'detection_mode' %}
34         <h1>Detection mode statistics</h1>
35     {% elif mode == 'avg_peers' %}
36         <h1>TOP {{amount}} average peer count</h1>
37     {% elif mode == 'avg_blocks' %}
38         <h1>TOP {{amount}} average block count</h1>
39     {% elif mode == 'obfuscator' %}
40         <h1>TOP {{amount}} obfuscating software</h1>
41     {% elif mode == 'obfuscation' %}
42         <h1>Obfuscation statistics</h1>
43     {% elif mode == 'block_level' %}
44         <h1>TOP {{amount}} block levels</h1>
45     {% else %}
46         <h1 style="color: red">mode={{mode}} not supported</h1>
47     {% endif %}
48 {% endblock %}
49
50 {% block content %}
51     <div class="scoreboard">
52         <table class="table-with-rows">
53             <thead>
54                 <th>№</th>
55                 <th>
56                     {% if mode in ('software', 'avg_peers', 'avg_blocks', 'obfuscator') %}Software
57                     {% elif mode == 'obfuscation' %}Obfuscation status
58                     {% elif mode == 'detection_mode' %}Detection mode
59                     {% elif mode == 'error_code' %}Error code
60                     {% else %}Instance
61                     {% endif %}
62                 </th>
63                 <th>
64                     {% if mode == 'reference' %}References
65                     {% elif mode in('avg_peers', 'avg_blocks') %}Average
66                     {% elif mode in('software', 'error_code', 'obfuscator', 'obfuscation', 'block_level', 'detection_mode', 'command') %}Total
67                     {% else %}Blocks
68                     {% endif %}
69                 </th>
70             </thead>
71
72             <tbody>
73             {% for entry in scores %}
74                 <tr>
75                     <td>{{loop.index}}</td>
76                     <td>
77                         {% if entry['domain'] == None %}
78                             -
79                         {% elif mode in ('error_code', 'obfuscation') %}
80                             {{entry['domain']}}
81                         {% elif mode == 'block_level' %}
82                             <a href="top?mode={{mode}}&amp;value={{entry['domain']}}&amp;amount=50">{{entry['domain']}}</a>
83                         {% elif mode in ('avg_peers', 'avg_blocks', 'obfuscator') %}
84                             <a href="list?mode=software&amp;value={{entry['domain']}}&amp;amount=50">{{entry['domain']}}</a>
85                         {% elif mode in ('software', 'detection_mode', 'command') %}
86                             <a href="list?mode={{mode}}&amp;value={{entry['domain']}}&amp;amount=50">{{entry['domain']}}</a>
87                         {% else %}
88                             {% with domain=entry['domain'] %}
89                             {% include "widgets/links.html" %}
90                             {% endwith %}
91                         {% endif %}
92                     </td>
93                     <td>{{entry['score']}}</td>
94                 </tr>
95             {% endfor %}
96             </tbody>
97         </table>
98     </div>
99 {% endblock %}
100
101 {% block footer %}
102     {% if mode == 'error_code' %}
103         <div class="notice">
104             <h3>Error codes:</h3>
105             <ul>
106                 <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>
107             </ul>
108         </div>
109     {% elif mode == 'detection_mode' %}
110         <div class="notice">
111             <h3>Detection modes:</h3>
112             <div>
113                 Detection is done in following order:
114             </div>
115             <ol>
116                 <li><b>AUTO_DISCOVERY</b>: <code>/.well-known/nodeinfo</code> was reachable and software type was found in nodeinfo response</li>
117                 <li><b>STATIC_CHECK</b>: Node information was found by probing for well-known URLs</li>
118                 <li><b>PLATFORM</b>: Meta data <code>og:platform</code> was found in HTML code</li>
119                 <li><b>GENERATOR</b>: Meta data <code>generator</code> was found in HTML code</li>
120                 <li><b>APP_NAME</b>: Meta data <code>application-name</code> was found in HTML code</li>
121                 <li><b>SITE_NAME</b>: Meta data <code>og:site_name</code> was found in HTML code</li>
122                 <li><b>None</b>: the instance was not reachable or the used software was not stated</li>
123             </ol>
124         </div>
125     {% elif mode == 'obfuscation' %}
126         <div class="notice">
127             <h3>Obfuscation status:</h3>
128             <ul>
129                 <li>Only supported networks are counted here.</li>
130                 <li><b>None</b> means not determined yet or erroneous.</li>
131             </ul>
132         </div>
133     {% endif %}
134     <a href="{{base_url}}/">Index</a> /
135     {{ super() }}
136 {% endblock %}