2024-05-14 16:08:38 +02:00
|
|
|
{% from "macros.html" import shorten_string %}
|
|
|
|
|
2021-03-18 00:40:14 +01:00
|
|
|
{% block content %}
|
2024-05-14 16:08:38 +02:00
|
|
|
|
|
|
|
<center>
|
|
|
|
<h4>{{ hostname }}</h4>
|
2024-09-25 12:00:59 +02:00
|
|
|
<h6>Only the most recent captures are listed below, this will change soon.</h6>
|
2024-05-14 16:08:38 +02:00
|
|
|
</center>
|
|
|
|
|
2024-09-04 16:30:33 +02:00
|
|
|
<script type="text/javascript" nonce="{{ csp_nonce() }}">
|
2024-05-14 16:08:38 +02:00
|
|
|
new DataTable('#hostnameTable', {
|
|
|
|
order: [[ 0, "desc" ]],
|
|
|
|
columnDefs: [{ width: '20%', targets: 0,
|
|
|
|
render: (data) => {
|
|
|
|
const date = new Date(data);
|
|
|
|
return date.getFullYear() + '-' + (date.getMonth() + 1).toString().padStart(2, "0") + '-' + date.getDate().toString().padStart(2, "0") + ' ' + date.toTimeString();
|
|
|
|
}
|
|
|
|
},
|
2024-05-14 18:52:26 +02:00
|
|
|
{ width: '40%', targets: 1 },
|
|
|
|
{ width: '40%', targets: 2 }],
|
2024-05-14 16:08:38 +02:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<table id="hostnameTable" class="table table-striped" style="width:100%">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Capture Time</th>
|
|
|
|
<th>Capture Title</th>
|
|
|
|
<th>Landing page</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2024-09-25 15:28:54 +02:00
|
|
|
{% for capture_uuid, title, landing_page, capture_time, nodes in captures %}
|
2024-05-14 16:08:38 +02:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
{{capture_time}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="{{ url_for('tree', tree_uuid=capture_uuid) }}">
|
|
|
|
{{ title }}
|
|
|
|
</a>
|
2024-09-25 15:28:54 +02:00
|
|
|
<br>
|
|
|
|
The capture contains this hostname in {{ nodes|length }} nodes, click below to see them on the tree:
|
|
|
|
<ul>
|
|
|
|
{% for node in nodes %}
|
|
|
|
<li>
|
|
|
|
<a href="{{ url_for('tree', tree_uuid=capture_uuid, node_uuid=node) }}">
|
|
|
|
{{ shorten_string(node, 50) }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2024-05-14 16:08:38 +02:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span class="d-inline-block text-break" style="max-width: 400px;">
|
|
|
|
{{ landing_page }}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2021-03-18 00:40:14 +01:00
|
|
|
{% endblock %}
|