From: Roland Häder
Date: Sat, 24 Jun 2023 12:13:23 +0000 (+0200)
Subject: Continued:
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d709245733562cf5a4fc67e1bca4b7d33223a7c2;p=fba.git
Continued:
- metrics wasn't the right word here, statistics is more proper
- renamed links.tpl -> links.html
---
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.html b/templates/widgets/links.html
new file mode 100644
index 0000000..46b435a
--- /dev/null
+++ b/templates/widgets/links.html
@@ -0,0 +1,3 @@
+[D]
+[R]
+{{domain}}
diff --git a/templates/widgets/links.tpl b/templates/widgets/links.tpl
deleted file mode 100644
index 46b435a..0000000
--- a/templates/widgets/links.tpl
+++ /dev/null
@@ -1,3 +0,0 @@
-[D]
-[R]
-{{domain}}