]> git.mxchange.org Git - fba.git/blobdiff - templates/views/scoreboard.html
Continued:
[fba.git] / templates / views / scoreboard.html
index 04bf8b9abf5b6146c017642501d0c8b61c546f9e..2f7619485f73bff71c0458f4772a64dd5cd86891 100644 (file)
@@ -1,6 +1,21 @@
 {% extends "base.html" %}
 
-{% 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 %}
+{% 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 == 'avg_blocks' %}TOP {{amount}} average block 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 %}
 
 {% block header %}
     {% if mode == 'blocker' %}
@@ -19,6 +34,8 @@
         <h1>Detection mode statistics</h1>
     {% elif mode == 'avg_peers' %}
         <h1>TOP {{amount}} average peer count</h1>
+    {% elif mode == 'avg_blocks' %}
+        <h1>TOP {{amount}} average block count</h1>
     {% elif mode == 'obfuscator' %}
         <h1>TOP {{amount}} obfuscating software</h1>
     {% elif mode == 'obfuscation' %}
@@ -36,7 +53,7 @@
             <thead>
                 <th>№</th>
                 <th>
-                    {% if mode in ('software', 'avg_peers', 'obfuscator') %}Software
+                    {% if mode in ('software', 'avg_peers', 'avg_blocks', 'obfuscator') %}Software
                     {% elif mode == 'obfuscation' %}Obfuscation status
                     {% elif mode == 'detection_mode' %}Detection mode
                     {% elif mode == 'error_code' %}Error code
@@ -45,7 +62,7 @@
                 </th>
                 <th>
                     {% if mode == 'reference' %}References
-                    {% elif mode == 'avg_peers' %}Average
+                    {% elif mode in('avg_peers', 'avg_blocks') %}Average
                     {% elif mode in('software', 'error_code', 'obfuscator', 'obfuscation', 'block_level', 'detection_mode', 'command') %}Total
                     {% else %}Blocks
                     {% endif %}
@@ -63,7 +80,7 @@
                             {{entry['domain']}}
                         {% elif mode == 'block_level' %}
                             <a href="top?mode={{mode}}&amp;value={{entry['domain']}}&amp;amount=50">{{entry['domain']}}</a>
-                        {% elif mode in ('avg_peers', 'obfuscator') %}
+                        {% elif mode in ('avg_peers', 'avg_blocks', 'obfuscator') %}
                             <a href="list?mode=software&amp;value={{entry['domain']}}&amp;amount=50">{{entry['domain']}}</a>
                         {% elif mode in ('software', 'detection_mode', 'command') %}
                             <a href="list?mode={{mode}}&amp;value={{entry['domain']}}&amp;amount=50">{{entry['domain']}}</a>