]> git.mxchange.org Git - fba.git/blob - templates/views/scoreboard.html
04bf8b9abf5b6146c017642501d0c8b61c546f9e
[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 statistics{% elif mode == 'block_level' %}TOP {{amount}} block level statistics{% elif mode == 'obfuscation' %}Obfuscation statistics{% 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 statistics</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 statistics</h1>
26     {% elif mode == 'block_level' %}
27         <h1>TOP {{amount}} block levels</h1>
28     {% else %}
29         <h1 style="color: red">mode={{mode}} not supported</h1>
30     {% endif %}
31 {% endblock %}
32
33 {% block content %}
34     <div class="scoreboard">
35         <table class="table-with-rows">
36             <thead>
37                 <th>№</th>
38                 <th>
39                     {% if mode in ('software', 'avg_peers', 'obfuscator') %}Software
40                     {% elif mode == 'obfuscation' %}Obfuscation status
41                     {% elif mode == 'detection_mode' %}Detection mode
42                     {% elif mode == 'error_code' %}Error code
43                     {% else %}Instance
44                     {% endif %}
45                 </th>
46                 <th>
47                     {% if mode == 'reference' %}References
48                     {% elif mode == 'avg_peers' %}Average
49                     {% elif mode in('software', 'error_code', 'obfuscator', 'obfuscation', 'block_level', 'detection_mode', 'command') %}Total
50                     {% else %}Blocks
51                     {% endif %}
52                 </th>
53             </thead>
54
55             <tbody>
56             {% for entry in scores %}
57                 <tr>
58                     <td>{{loop.index}}</td>
59                     <td>
60                         {% if entry['domain'] == None %}
61                             -
62                         {% elif mode in ('error_code', 'obfuscation') %}
63                             {{entry['domain']}}
64                         {% elif mode == 'block_level' %}
65                             <a href="top?mode={{mode}}&amp;value={{entry['domain']}}&amp;amount=50">{{entry['domain']}}</a>
66                         {% elif mode in ('avg_peers', 'obfuscator') %}
67                             <a href="list?mode=software&amp;value={{entry['domain']}}&amp;amount=50">{{entry['domain']}}</a>
68                         {% elif mode in ('software', 'detection_mode', 'command') %}
69                             <a href="list?mode={{mode}}&amp;value={{entry['domain']}}&amp;amount=50">{{entry['domain']}}</a>
70                         {% else %}
71                             {% with domain=entry['domain'] %}
72                             {% include "widgets/links.html" %}
73                             {% endwith %}
74                         {% endif %}
75                     </td>
76                     <td>{{entry['score']}}</td>
77                 </tr>
78             {% endfor %}
79             </tbody>
80         </table>
81     </div>
82 {% endblock %}
83
84 {% block footer %}
85     {% if mode == 'error_code' %}
86         <div class="notice">
87             <h3>Error codes:</h3>
88             <ul>
89                 <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>
90             </ul>
91         </div>
92     {% elif mode == 'detection_mode' %}
93         <div class="notice">
94             <h3>Detection modes:</h3>
95             <div>
96                 Detection is done in following order:
97             </div>
98             <ol>
99                 <li><b>AUTO_DISCOVERY</b>: <code>/.well-known/nodeinfo</code> was reachable and software type was found in nodeinfo response</li>
100                 <li><b>STATIC_CHECK</b>: Node information was found by probing for well-known URLs</li>
101                 <li><b>PLATFORM</b>: Meta data <code>og:platform</code> was found in HTML code</li>
102                 <li><b>GENERATOR</b>: Meta data <code>generator</code> was found in HTML code</li>
103                 <li><b>APP_NAME</b>: Meta data <code>application-name</code> was found in HTML code</li>
104                 <li><b>SITE_NAME</b>: Meta data <code>og:site_name</code> was found in HTML code</li>
105                 <li><b>None</b>: the instance was not reachable or the used software was not stated</li>
106             </ol>
107         </div>
108     {% elif mode == 'obfuscation' %}
109         <div class="notice">
110             <h3>Obfuscation status:</h3>
111             <ul>
112                 <li>Only supported networks are counted here.</li>
113                 <li><b>None</b> means not determined yet or erroneous.</li>
114             </ul>
115         </div>
116     {% endif %}
117     <a href="{{base_url}}/">Index</a> /
118     {{ super() }}
119 {% endblock %}