From dd2952a0b6394d325c8f1c9ee0e4fd3792809186 Mon Sep 17 00:00:00 2001 From: Rieven Date: Thu, 19 Oct 2023 13:18:49 +0200 Subject: [PATCH] Fix report tables overflowing whole page (#1940) --- .../report_types/dns_report/report.html | 204 +++++++++--------- .../report_types/tls_report/report.html | 68 +++--- 2 files changed, 140 insertions(+), 132 deletions(-) diff --git a/rocky/reports/report_types/dns_report/report.html b/rocky/reports/report_types/dns_report/report.html index 731f4677024..affc75e7d61 100644 --- a/rocky/reports/report_types/dns_report/report.html +++ b/rocky/reports/report_types/dns_report/report.html @@ -1,117 +1,123 @@ {% load i18n %}

{% translate "IP address lookup" %}

-
- {% if data.ipv4 %} - - - - - - - - - {% for ip in data.ipv4 %}{% endfor %} - - -
IPv4
{{ ip }}
- {% endif %} - {% if not data.enough_ipv6_webservers %} -
- IPv6 {% translate "Warning" %}: -

- {% blocktranslate trimmed %} +

+
+ {% if data.ipv4 %} + + + + + + + + + {% for ip in data.ipv4 %}{% endfor %} + + +
IPv4
{{ ip }}
+ {% endif %} + {% if not data.enough_ipv6_webservers %} +
+ IPv6 {% translate "Warning" %}: +

+ {% blocktranslate trimmed %} You have less than one webserver that is reachable over IPv6, which is not in compliance to internet.nl standards. - {% endblocktranslate %} -

-
- {% else %} - - - - - - - - - {% for ip in data.ipv6 %}{% endfor %} - - -
IPv6
{{ ip }}
- {% endif %} + {% endblocktranslate %} +

+
+ {% else %} + + + + + + + + + {% for ip in data.ipv6 %}{% endfor %} + + +
IPv6
{{ ip }}
+ {% endif %} +
{% if data.other_records %}

{% translate "Other records found" %}

- - - - - - - - - - {% for ooi in data.other_records %} - - - - - - {% endfor %} - -
{% translate "Record" %}{% translate "Value" %}{% translate "Found by" %}
{{ ooi.human_readable }}{{ ooi.content }}{{ ooi.origin }}
-

{% translate "Security measures" %}

-
+
- - + + + - - - - - - - - - - - - - - - - + {% for ooi in data.other_records %} + + + + + + {% endfor %}
{% translate "Enabled" %}{% translate "Type" %}{% translate "Record" %}{% translate "Value" %}{% translate "Found by" %}
- {% if data.security.spf %} - {% translate "Yes" %} - {% else %} - {% translate "No" %} - {% endif %} - SPF
- {% if data.security.dmarc %} - {% translate "Yes" %} - {% else %} - {% translate "No" %} - {% endif %} - DMARC
- {% if data.security.dkim %} - {% translate "Yes" %} - {% else %} - {% translate "No" %} - {% endif %} - DKIM
- {% if data.security.dnssec %} - {% translate "Yes" %} - {% else %} - {% translate "No" %} - {% endif %} - DNSSEC
{{ ooi.human_readable }}{{ ooi.content }}{{ ooi.origin }}
+

{% translate "Security measures" %}

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
{% translate "Enabled" %}{% translate "Type" %}
+ {% if data.security.spf %} + {% translate "Yes" %} + {% else %} + {% translate "No" %} + {% endif %} + SPF
+ {% if data.security.dmarc %} + {% translate "Yes" %} + {% else %} + {% translate "No" %} + {% endif %} + DMARC
+ {% if data.security.dkim %} + {% translate "Yes" %} + {% else %} + {% translate "No" %} + {% endif %} + DKIM
+ {% if data.security.dnssec %} + {% translate "Yes" %} + {% else %} + {% translate "No" %} + {% endif %} + DNSSEC
+
+
{% endif %} diff --git a/rocky/reports/report_types/tls_report/report.html b/rocky/reports/report_types/tls_report/report.html index 8f9fbcd8252..5ac68d3d048 100644 --- a/rocky/reports/report_types/tls_report/report.html +++ b/rocky/reports/report_types/tls_report/report.html @@ -2,42 +2,44 @@

Ciphers

{% if data.suites %} - - - - - - - - - - - - - - {% for protocol, suites in data.suites.items %} - {% for suite in suites %} +
+
{% translate "Status" %}{% translate "Protocol" %}{% translate "Name" %}{% translate "Encryption Algorithm" %}{% translate "Bits" %}{% translate "Key Size" %}{% translate "Code" %}
+ - - - - - - - + + + + + + + - {% endfor %} - {% endfor %} - -
- {% if suite.cipher_suite_name in data.suites_with_findings %} - {% translate "Phase out" %} - {% else %} - {% translate "Good" %} - {% endif %} - {{ protocol }}{{ suite.cipher_suite_alias }}{{ suite.encryption_algorithm }}{{ suite.bits }}{{ suite.key_size }}{{ suite.cipher_suite_code }}{% translate "Status" %}{% translate "Protocol" %}{% translate "Name" %}{% translate "Encryption Algorithm" %}{% translate "Bits" %}{% translate "Key Size" %}{% translate "Code" %}
+ + + {% for protocol, suites in data.suites.items %} + {% for suite in suites %} + + + {% if suite.cipher_suite_name in data.suites_with_findings %} + {% translate "Phase out" %} + {% else %} + {% translate "Good" %} + {% endif %} + + {{ protocol }} + {{ suite.cipher_suite_alias }} + {{ suite.encryption_algorithm }} + {{ suite.bits }} + {{ suite.key_size }} + {{ suite.cipher_suite_code }} + + {% endfor %} + {% endfor %} + + +
{% else %} -

{% translate "No ciphers found for this IPService" %}

+

{% translate "No ciphers found for this IPService" %}

{% endif %} {% if data.findings %}

{% translate "Findings" %}