From 4c178af0ff58ab9f354627bf57e7c955e066e9c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Stucke?= Date: Mon, 18 Nov 2024 17:07:29 +0100 Subject: [PATCH] fix: hide raw result overflow to fix scrollbar issue fixes the issue that the raw result is hidden by default but is considered for page height and scroll bar length nontheless --- .../analysis_plugins/general_information.html | 126 +++++++++--------- 1 file changed, 63 insertions(+), 63 deletions(-) diff --git a/src/web_interface/templates/analysis_plugins/general_information.html b/src/web_interface/templates/analysis_plugins/general_information.html index 707012841..e48e9968c 100644 --- a/src/web_interface/templates/analysis_plugins/general_information.html +++ b/src/web_interface/templates/analysis_plugins/general_information.html @@ -4,82 +4,82 @@ - - + + - - + - + + + - {% if analysis_result['skipped'] %} - - - - - {% endif %} - {% if analysis_metadata['analysis_date'] %} - - - - - {% endif %} - {% if analysis_metadata['plugin_version'] %} - - - - - {% endif %} - {% if analysis_metadata['system_version'] %} - - - - - {% endif %} - - - + {% if analysis_result['skipped'] %} + + + + {% endif %} + {% if analysis_metadata['analysis_date'] %} + + + + + {% endif %} + {% if analysis_metadata['plugin_version'] %} + + + + + {% endif %} + {% if analysis_metadata['system_version'] %} + + + + + {% endif %} + + + + - {% set version_backend = analysis_plugin_dict[selected_analysis][3] %} - {% set version_database = analysis_metadata['plugin_version'] %} - - {% if selected_analysis == 'unpacker' or version_database | version_is_compatible(version_backend, True) %} - {% if analysis_result is not none and 'skipped' not in analysis_result %} - {% block analysis_result_details %} + {% set version_backend = analysis_plugin_dict[selected_analysis][3] %} + {% set version_database = analysis_metadata['plugin_version'] %} - {% endblock %} - {% endif %} - {% else %} - - - - + {% endblock %} {% endif %} + {% else %} + + + + + {% endif %}
-
+
+
Showing Analysis: {{ selected_analysis | replace_underscore }} -
- - - -
+
+ + +
-
Analysis was skipped{{ analysis_metadata['skipped'] }}
Time of Analysis{{ analysis_metadata['analysis_date'] | nice_unix_time }}
Plugin Version{{ analysis_metadata['plugin_version']}}
System Version{{ analysis_metadata['system_version']}}
Raw Analysis Result -
{{ analysis_result | dict_to_json(indent=4) }}
-
Analysis was skipped{{ analysis_metadata['skipped'] }}
Time of Analysis{{ analysis_metadata['analysis_date'] | nice_unix_time }}
Plugin Version{{ analysis_metadata['plugin_version'] }}
System Version{{ analysis_metadata['system_version'] }}
Raw Analysis Result +
{{ analysis_result | dict_to_json(indent=4) }}
+
Analysis outdated - The backend plugin version ({{ version_backend | string }}) is incompatible with - the version ({{ version_database | string }}) of the analysis result. + {% if selected_analysis == 'unpacker' or version_database | version_is_compatible(version_backend, True) %} + {% if analysis_result is not none and 'skipped' not in analysis_result %} + {% block analysis_result_details %} - Please update the analysis. -
Analysis outdated + The backend plugin version ({{ version_backend | string }}) is incompatible with + the version ({{ version_database | string }}) of the analysis result. + + Please update the analysis. +