]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Wed, 26 Jul 2023 20:24:12 +0000 (22:24 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 26 Jul 2023 20:24:12 +0000 (22:24 +0200)
- also show in scoreboard when an unsupported mode was provided
- fixed indenting

templates/views/list.html
templates/views/scoreboard.html

index d1c8c985075012d42bc37401582cbfc858d81dd1..260537d77ae6c69893e8930277daaa887faf3c3a 100644 (file)
 
         <tbody>
         {% for row in domainlist %}
-                <tr>
-                    <td>
-                        {% with domain=row['domain'] %}
-                        {% include "widgets/links.html" %}
-                        {% endwith %}
-                    </td>
-                    <td>
-                        {% with domain=row['origin'] %}
-                        {% include "widgets/links.html" %}
-                        {% endwith %}
-                    </td>
-                    <td>
-                        {% with mode='software',  amount=amount, value=row['software'] %}
-                        {% include "widgets/list_links.html" %}
-                        {% endwith %}
-                    </td>
-                    <td>
-                        {% with mode='detection_mode',  amount=amount, value=row['detection_mode'] %}
-                        {% include "widgets/list_links.html" %}
-                        {% endwith %}
-                    </td>
-                    <td><code>{{row['command']}}</code></td>
-                    <td>{{row['first_seen']}}</td>
-                    <td>{{row['last_updated']}}</td>
-                </tr>
+            <tr>
+                <td>
+                    {% with domain=row['domain'] %}
+                    {% include "widgets/links.html" %}
+                    {% endwith %}
+                </td>
+                <td>
+                    {% with domain=row['origin'] %}
+                    {% include "widgets/links.html" %}
+                    {% endwith %}
+                </td>
+                <td>
+                    {% with mode='software', amount=amount, value=row['software'] %}
+                    {% include "widgets/list_links.html" %}
+                    {% endwith %}
+                </td>
+                <td>
+                    {% with mode='detection_mode', amount=amount, value=row['detection_mode'] %}
+                    {% include "widgets/list_links.html" %}
+                    {% endwith %}
+                </td>
+                <td><code>{{row['command']}}</code></td>
+                <td>{{row['first_seen']}}</td>
+                <td>{{row['last_updated']}}</td>
+            </tr>
         {% endfor %}
         </tbody>
     </table>
index 776dbc768d1b9a2a694476bd6567c908ad5897da..f76775d55037e8bff1c0e1bb8d465d2f0ff3c4ba 100644 (file)
@@ -25,6 +25,8 @@
         <h1>Obfuscation statistics</h1>
     {% elif mode == 'block_level' %}
         <h1>TOP {{amount}} block levels</h1>
+    {% else %}
+        <h1 style="color: red">mode={{mode}} not supported</h1>
     {% endif %}
 {% endblock %}