]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 5 Aug 2023 16:17:20 +0000 (18:17 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 5 Aug 2023 16:17:20 +0000 (18:17 +0200)
- don't link or show 'None', just a dash is okay

templates/views/scoreboard.html

index 043634a1d8df95fc3e390c53eb1124891a3e3d26..034c4052f2b55cf1b03d26903d179e3a77159e13 100644 (file)
@@ -44,7 +44,9 @@
                 <tr>
                     <td>{{loop.index}}</td>
                     <td>
-                        {% if mode in ('error_code', 'obfuscation') %}
+                        {% if entry['domain'] == None %}
+                            -
+                        {% elif mode in ('error_code', 'obfuscation') %}
                             {{entry['domain']}}
                         {% elif mode == 'block_level' %}
                             <a href="top?mode={{mode}}&amp;value={{entry['domain']}}&amp;amount=50">{{entry['domain']}}</a>
@@ -52,8 +54,6 @@
                             <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>
-                        {% elif entry['domain'] == None %}
-                            -
                         {% else %}
                             {% with domain=entry['domain'] %}
                             {% include "widgets/links.html" %}