From d709245733562cf5a4fc67e1bca4b7d33223a7c2 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Roland=20H=C3=A4der?=
Date: Sat, 24 Jun 2023 14:13:23 +0200
Subject: [PATCH] Continued: - metrics wasn't the right word here, statistics
is more proper - renamed links.tpl -> links.html
---
templates/views/index.html | 4 ++--
templates/views/scoreboard.html | 10 +++++-----
templates/views/top.html | 4 ++--
templates/widgets/{links.tpl => links.html} | 0
4 files changed, 9 insertions(+), 9 deletions(-)
rename templates/widgets/{links.tpl => links.html} (100%)
diff --git a/templates/views/index.html b/templates/views/index.html
index 5d0609f..94ff6eb 100644
--- a/templates/views/index.html
+++ b/templates/views/index.html
@@ -37,8 +37,8 @@
detection modes /
average peers /
obfuscating software /
- obfuscation metrics /
- block level metrics
+ obfuscation statistics /
+ block level statistics
{% endblock %}
{% block footer %}
diff --git a/templates/views/scoreboard.html b/templates/views/scoreboard.html
index ba54fbd..70d4270 100644
--- a/templates/views/scoreboard.html
+++ b/templates/views/scoreboard.html
@@ -1,6 +1,6 @@
{% extends "base.html" %}
-{% block title %}Scoreboard - {% if mode == 'software' %}TOP {{amount}} used software{% elif mode == 'detection_mode' %}Detection mode metrics{% elif mode == 'block_level' %}TOP {{amount}} block level metrics{% elif mode == 'obfuscation' %}Obfuscation metrics{% 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 == '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' %}
@@ -16,13 +16,13 @@
{% elif mode == 'error_code' %}
TOP {{amount}} error codes
{% elif mode == 'detection_mode' %}
- Detection mode metrics
+ Detection mode statistics
{% elif mode == 'avg_peers' %}
TOP {{amount}} average peer count
{% elif mode == 'obfuscator' %}
TOP {{amount}} obfuscating software
{% elif mode == 'obfuscation' %}
- Obfuscation metrics
+ Obfuscation statistics
{% elif mode == 'block_level' %}
TOP {{amount}} block levels
{% endif %}
@@ -33,7 +33,7 @@
â |
- {% if mode in ('software', 'avg_peers', 'obfuscator') %}Software{% elif mode == 'obfuscation' %}obfuscation status{% elif mode == 'detection_mode' %}Detection mode{% elif mode == 'error_code' %}Error code{% else %}Instance{% endif %} |
+ {% if mode in ('software', 'avg_peers', 'obfuscator') %}Software{% elif mode == 'obfuscation' %}Obfuscation status{% elif mode == 'detection_mode' %}Detection mode{% elif mode == 'error_code' %}Error code{% else %}Instance{% endif %} |
{% if mode == 'reference' %}References{% elif mode == 'avg_peers' %}Average{% elif mode in('software', 'error_code', 'obfuscator', 'obfuscation', 'block_level', 'detection_mode') %}Total{% else %}Blocks{% endif %} |
@@ -50,7 +50,7 @@
{{entry['domain']}}
{% else %}
{% with domain=entry['domain'] %}
- {% include "widgets/links.tpl" %}
+ {% include "widgets/links.html" %}
{% endwith %}
{% endif %}
diff --git a/templates/views/top.html b/templates/views/top.html
index 82acd71..2dc0582 100644
--- a/templates/views/top.html
+++ b/templates/views/top.html
@@ -49,12 +49,12 @@
{% with domain=block['blocker'] %}
- {% include "widgets/links.tpl" %}
+ {% include "widgets/links.html" %}
{% endwith %}
|
{% with domain=block['blocked'] %}
- {% include "widgets/links.tpl" %}
+ {% include "widgets/links.html" %}
{% endwith %}
|
{{block['reason']}} |
diff --git a/templates/widgets/links.tpl b/templates/widgets/links.html
similarity index 100%
rename from templates/widgets/links.tpl
rename to templates/widgets/links.html
--
2.39.5