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