From f5ef735fed3d154a38809fa0a8a1d86c43fe921f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 26 Jul 2023 22:24:12 +0200 Subject: [PATCH] Continued: - also show in scoreboard when an unsupported mode was provided - fixed indenting --- templates/views/list.html | 50 ++++++++++++++++----------------- templates/views/scoreboard.html | 2 ++ 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/templates/views/list.html b/templates/views/list.html index d1c8c98..260537d 100644 --- a/templates/views/list.html +++ b/templates/views/list.html @@ -40,31 +40,31 @@ {% for row in domainlist %} - - - {% with domain=row['domain'] %} - {% include "widgets/links.html" %} - {% endwith %} - - - {% with domain=row['origin'] %} - {% include "widgets/links.html" %} - {% endwith %} - - - {% with mode='software', amount=amount, value=row['software'] %} - {% include "widgets/list_links.html" %} - {% endwith %} - - - {% with mode='detection_mode', amount=amount, value=row['detection_mode'] %} - {% include "widgets/list_links.html" %} - {% endwith %} - - {{row['command']}} - {{row['first_seen']}} - {{row['last_updated']}} - + + + {% with domain=row['domain'] %} + {% include "widgets/links.html" %} + {% endwith %} + + + {% with domain=row['origin'] %} + {% include "widgets/links.html" %} + {% endwith %} + + + {% with mode='software', amount=amount, value=row['software'] %} + {% include "widgets/list_links.html" %} + {% endwith %} + + + {% with mode='detection_mode', amount=amount, value=row['detection_mode'] %} + {% include "widgets/list_links.html" %} + {% endwith %} + + {{row['command']}} + {{row['first_seen']}} + {{row['last_updated']}} + {% endfor %} diff --git a/templates/views/scoreboard.html b/templates/views/scoreboard.html index 776dbc7..f76775d 100644 --- a/templates/views/scoreboard.html +++ b/templates/views/scoreboard.html @@ -25,6 +25,8 @@

Obfuscation statistics

{% elif mode == 'block_level' %}

TOP {{amount}} block levels

+ {% else %} +

mode={{mode}} not supported

{% endif %} {% endblock %} -- 2.39.5