From f8702e6e85845573eb0c26d151624aec0a319435 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 6 Jul 2023 12:49:07 +0200 Subject: [PATCH] Continued: - added missing cases for header (h1) and browser title bar - fixed module name --- fba/http/federation.py | 2 +- templates/views/list.html | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/fba/http/federation.py b/fba/http/federation.py index 845d46a..8a0a225 100644 --- a/fba/http/federation.py +++ b/fba/http/federation.py @@ -451,7 +451,7 @@ def fetch_generator_from_path(domain: str, path: str = "/") -> str: components = urlparse(response.url) - log.debug("components[]='%s'", type(components)) + logger.debug("components[]='%s'", type(components)) if not instances.is_registered(components.netloc): logger.info("components.netloc='%s' is not registered, adding ...", components.netloc) fetch_instances(components.netloc, domain, None, "fetch_generator") diff --git a/templates/views/list.html b/templates/views/list.html index 27ece0c..a385297 100644 --- a/templates/views/list.html +++ b/templates/views/list.html @@ -1,10 +1,14 @@ {% extends "base.html" %} -{% block title %}{% if mode == 'detection_mode' %} - Detection mode {{value}}{% endif %}{% endblock %} +{% block title %}{% if mode == 'detection_mode' %} - Detection mode {{value}}{% elif mode == 'software' %} - Used software {{value}}{% elif mode == 'command' %} - Command {{value}}{% endif %}{% endblock %} {% block header %} {% if mode == 'detection_mode' %}

Instances detected by method {{value}}

+ {% elif mode == 'software' %} +

Instances using software {{value}}

+ {% elif mode == 'command' %} +

Instances found by command {{value}}

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