Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions modules/test/dns/resources/report_template.jinja2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends base_template %}
{% block content %}
{% if module_data %}
<table class="module-data" style="width:100%;">
<table class="module-data dns-module" style="width:100%;">
<thead>
<tr>
{% for header in module_data_headers %}
Expand All @@ -12,13 +12,13 @@
<tbody>
{% for row in module_data %}
<tr>
<td>{{ row['src'] }}</td>
<td>{{ row['dst'] }}</td>
<td>{{ row['res_ip'] }}</td>
<td>{{ row['typ'] }}</td>
<td>{{ row['dat'] }}</td>
<td>{{ row['count'] }}</td>
</tr>
<td><div>{{ row['src'] }}</div></td>
<td><div>{{ row['dst'] }}</div></td>
<td><div>{{ row['res_ip'] }}</div></td>
<td><div>{{ row['typ'] }}</div></td>
<td><div>{{ row['dat'] }}</div></td>
<td class="count-row"><div>{{ row['count'] }}</div></td>
</tr>
{% endfor %}
</tbody>
</table>
Expand Down
18 changes: 18 additions & 0 deletions resources/report/test_report_styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,24 @@
word-break: break-word;
}

.module-data.dns-module thead tr th,
.module-data.dns-module tbody tr td {
padding: 12px 16px;
}

.module-data.dns-module tbody tr td {
max-width: 1px;
}

.module-data.dns-module tbody tr td.count-row {
width: 1px;
}

.module-data.dns-module tbody tr td div {
word-wrap: break-word;
overflow-wrap: break-word;
}

div.steps-to-resolve {
background-color: #F8F9FA;
margin-bottom: 30px;
Expand Down
Loading