-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table captions #2217
Merged
Merged
Table captions #2217
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ea49d52
Adds and updates captions where needed. Fixes a couple of invalid htm…
HeleenSG 5e4a63a
remove json files
noamblitz 6e823e1
add rpki cache to gitignore
noamblitz 67cfc9e
Caption fix
HeleenSG 703fe6a
Merge branch 'main' into fix/report-table-captions
underdarknl eefd779
fix lang
Rieven File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"timestamp": "2023-12-28T10:21:19Z", "source": "https://console.rpki-client.org/vrps.json"} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
{% load i18n %} | ||
|
||
<p class="horizontal-scroll"> | ||
<p class="column-2"> | ||
<div class="horizontal-scroll"> | ||
<table> | ||
<caption class="visually-hidden">{% translate "Mailserver compliance:" %}</caption> | ||
<thead> | ||
<tr> | ||
<th scope="col">{% translate "Check" %}</th> | ||
<th scope="col">{% translate "Compliance" %}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>SPF</td> | ||
<td>{{ data.number_of_spf }}/{{ data.number_of_hostnames }} {% translate "mailservers compliant" %}</td> | ||
</tr> | ||
<tr> | ||
<td>DKIM</td> | ||
<td>{{ data.number_of_dkim }}/{{ data.number_of_hostnames }} {% translate "mailservers compliant" %}</td> | ||
</tr> | ||
<tr> | ||
<td>DMARC</td> | ||
<td>{{ data.number_of_dmarc }}/{{ data.number_of_hostnames }} {% translate "mailservers compliant" %}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
{% if data.finding_types.measures %} | ||
<div class="horizontal-scroll"> | ||
<table> | ||
<caption class="visually-hidden">{% translate "Findings:" %}</caption> | ||
<thead> | ||
<tr> | ||
<th scope="col">{% translate "Check" %}</th> | ||
<th scope="col">{% translate "Compliance" %}</th> | ||
<th scope="col">{% translate "Compliance issue" %}</th> | ||
<th scope="col">{% translate "Risk level" %}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>SPF</td> | ||
<td>{{ data.number_of_spf }}/{{ data.number_of_hostnames }} {% translate "mailservers compliant" %}</td> | ||
</tr> | ||
<tr> | ||
<td>DKIM</td> | ||
<td>{{ data.number_of_dkim }}/{{ data.number_of_hostnames }} {% translate "mailservers compliant" %}</td> | ||
</tr> | ||
<tr> | ||
<td>DMARC</td> | ||
<td>{{ data.number_of_dmarc }}/{{ data.number_of_hostnames }} {% translate "mailservers compliant" %}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</p> | ||
{% if data.finding_types.measures %} | ||
<p class="column-2"> | ||
<table> | ||
<thead> | ||
{% for measure in data.finding_types.values %} | ||
<tr> | ||
<th scope="col">{% translate "Compliance issue" %}</th> | ||
<th scope="col">{% translate "Risk level" %}</th> | ||
<td>{{ measure.description }}</td> | ||
<td>{{ measure.risk_severity }}</td> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for measure in data.finding_types.values %} | ||
<tr> | ||
<td>{{ measure.description }}</td> | ||
<td>{{ measure.risk_severity }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</p> | ||
{% endif %} | ||
</p> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
{% endif %} |
88 changes: 44 additions & 44 deletions
88
rocky/reports/report_types/name_server_report/report.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
{% load i18n %} | ||
|
||
<p class="horizontal-scroll"> | ||
<p class="column-2"> | ||
<div class="horizontal-scroll"> | ||
<table> | ||
<caption class="visually-hidden">{% translate "Name server compliance:" %}</caption> | ||
<thead> | ||
<tr> | ||
<th scope="col">{% translate "Check" %}</th> | ||
<th scope="col">{% translate "Compliance" %}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>{% translate "DNSSEC Present" %}</td> | ||
<td> | ||
{{ data.name_server_checks.has_dnssec }}/{{ data.name_server_checks|length }} {% translate "name servers compliant" %} | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>{% translate "Valid DNSSEC" %}</td> | ||
<td> | ||
{{ data.name_server_checks.has_valid_dnssec }}/{{ data.name_server_checks|length }} {% translate "name servers compliant" %} | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>{% translate "No unnecessary ports open" %}</td> | ||
<td> | ||
{{ data.name_server_checks.no_uncommon_ports }}/{{ data.name_server_checks|length }} {% translate "name servers compliant" %} | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
{% if data.finding_types %} | ||
<div class="horizontal-scroll"> | ||
<table> | ||
<caption class="visually-hidden">{% translate "Findings:" %}</caption> | ||
<thead> | ||
<tr> | ||
<th scope="col">{% translate "Check" %}</th> | ||
<th scope="col">{% translate "Compliance" %}</th> | ||
<th scope="col">{% translate "Compliance issue" %}</th> | ||
<th scope="col">{% translate "Risk level" %}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>{% translate "DNSSEC Present" %}</td> | ||
<td> | ||
{{ data.name_server_checks.has_dnssec }}/{{ data.name_server_checks|length }} {% translate "name servers compliant" %} | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>{% translate "Valid DNSSEC" %}</td> | ||
<td> | ||
{{ data.name_server_checks.has_valid_dnssec }}/{{ data.name_server_checks|length }} {% translate "name servers compliant" %} | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>{% translate "No unnecessary ports open" %}</td> | ||
<td> | ||
{{ data.name_server_checks.no_uncommon_ports }}/{{ data.name_server_checks|length }} {% translate "name servers compliant" %} | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</p> | ||
{% if data.finding_types %} | ||
<p class="column-2"> | ||
<table> | ||
<thead> | ||
{% for finding_type in data.finding_types %} | ||
<tr> | ||
<th scope="col">{% translate "Compliance issue" %}</th> | ||
<th scope="col">{% translate "Risk level" %}</th> | ||
<td>{{ finding_type.description }}</td> | ||
<td>{{ finding_type.risk_severity }}</td> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for finding_type in data.finding_types %} | ||
<tr> | ||
<td>{{ finding_type.description }}</td> | ||
<td>{{ finding_type.risk_severity }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</p> | ||
{% endif %} | ||
</p> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should just say:
"Selected assets", as its not limited to just declared assets if the user makes a different choice earlier on in the flow.