]> 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 %}Scoreboard - {% if mode == 'software' %}TOP {{amount}} used software{% elif mode == 'detection_mode' %}Detection mode metrics{% elif mode == 'block_level' %}TOP {{amount}} block level metrics{% elif mode == 'obfuscation' %}obfuscation metrics{% elif mode == 'obfuscator' %}TOP {{amount}} obfuscating software{% elif mode == 'avg_peers' %}TOP {{amount}} average peer count{% elif mode == 'command' %}TOP {{amount}} commands{% elif mode == 'error_code' %}TOP {{amount}} error codes{% elif mode == 'reference' %}TOP {{amount}} referencing instances{% elif mode == 'blocked' %}TOP {{amount}} deferated instances{% elif mode == 'blocker' %}TOP {{amount}} deferating instances{% endif %}{% endblock %}
4
5 {% block header %}
6     {% if mode == 'blocker' %}
7         <h1>Top {{amount}} defederating instances</h1>
8     {% elif mode == 'blocked' %}
9         <h1>Top {{amount}} defederated instances</h1>
10     {% elif mode == 'reference' %}
11         <h1>Top {{amount}} referencing instances</h1>
12     {% elif mode == 'software' %}
13         <h1>Top {{amount}} used software</h1>
14     {% elif mode == 'command' %}
15         <h1>TOP {{amount}} commands</h1>
16     {% elif mode == 'error_code' %}
17         <h1>TOP {{amount}} error codes</h1>
18     {% elif mode == 'detection_mode' %}
19         <h1>Detection mode metrics</h1>
20     {% elif mode == 'avg_peers' %}
21         <h1>TOP {{amount}} average peer count</h1>
22     {% elif mode == 'obfuscator' %}
23         <h1>TOP {{amount}} obfuscating software</h1>
24     {% elif mode == 'obfuscation' %}
25         <h1>obfuscation metrics</h1>
26     {% elif mode == 'block_level' %}
27         <h1>TOP {{amount}} block levels</h1>
28     {% endif %}
29 {% endblock %}
30
31 {% block content %}
32     <div class="scoreboard">
33         <table>
34             <thead>
35                 <th>№</th>
36                 <th>{% if mode in ('software', 'avg_peers', 'obfuscator') %}Software{% elif mode == 'obfuscation' %}obfuscation status{% elif mode == 'detection_mode' %}Detection mode{% elif mode == 'error_code' %}Error code{% else %}Instance{% endif %}</th>
37                 <th>{% if mode == 'reference' %}References{% elif mode == 'avg_peers' %}Average{% elif mode in('software', 'error_code', 'obfuscator', 'obfuscation', 'block_level', 'detection_mode') %}Total{% else %}Blocks{% endif %}</th>
38             </thead>
39
40             <tbody>
41             {% for entry in scores %}
42                 <tr>
43                     <td>{{loop.index}}</td>
44                     <td>
45                         {% if mode in ('software', 'command', 'error_code', 'detection_mode', 'avg_peers', 'obfuscator', 'obfuscation', 'block_level') %}
46                             {{entry['domain']}}
47                         {% elif entry['domain'] == None %}
48                             -
49                         {% else %}
50                             {% with domain=entry['domain'] %}
51                             {% include "widgets/links.tpl" %}
52                             {% endwith %}
53                         {% endif %}
54                     </td>
55                     <td>{{entry['score']}}</td>
56                 </tr>
57             {% endfor %}
58             </tbody>
59         </table>
60     </div>
61 {% endblock %}
62
63 {% block footer %}
64     {% if mode == 'error_code' %}
65         <div class="notes">
66             <h2>Error codes:</h2>
67             <ul>
68                 <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>
69             </ul>
70         </div>
71     {% elif mode == 'detection_mode' %}
72         <div class="notes">
73             <h2>Detection modes:</h2>
74             <div>
75                 Detection is done in following order:
76             </div>
77             <ol>
78                 <li><b>AUTO_DISCOVERY</b>: <code>/.well-known/nodeinfo</code> was reachable and software type was found in nodeinfo response</li>
79                 <li><b>GENERATOR</b>: Meta data <code>generator</code> was found in HTML code</li>
80                 <li><b>SITE_NAME</b>: Meta data <code>og:site_name</code> was found in HTML code</li>
81                 <li><b>STATIC_CHECK</b>: All above did not reveal software type, so a check on pre-defined JSON elements was done</li>
82                 <li><b>None</b>: the instance was not reachable or the used software was not stated</li>
83             </ol>
84         </div>
85     {% elif mode == 'obfuscation' %}
86         <div class="notes">
87             <h2>Obfuscation status:</h2>
88             <ul>
89                 <li>Only supported networks are counted here.</li>
90                 <li><b>None</b> means not determined yet.</li>
91             </ul>
92         </div>
93     {% endif %}
94     <a href="{{base_url}}/">Index</a> /
95     {{ super() }}
96 {% endblock %}