2024-03-14 17:27:39 +01:00
|
|
|
{% from "macros.html" import popup_icons_response %}
|
|
|
|
|
2022-08-01 17:51:43 +02:00
|
|
|
<script type="text/javascript">
|
2024-03-14 17:27:39 +01:00
|
|
|
var table = new DataTable('#bodyHashesTable', {
|
2024-02-27 15:29:35 +01:00
|
|
|
order: [[ 0, "desc" ]],
|
2024-02-20 17:01:16 +01:00
|
|
|
columnDefs: [{ width: '10%', targets: 0 },
|
|
|
|
{ width: '10%', targets: 1 },
|
|
|
|
{ width: '60%', targets: 2 },
|
|
|
|
{ width: '20%', targets: 3 }],
|
2024-03-14 17:27:39 +01:00
|
|
|
initComplete: function (settings, json) {
|
|
|
|
$('[data-bs-toggle="tooltip"]').tooltip({html: true});
|
|
|
|
}
|
|
|
|
}).on('draw', function() {
|
|
|
|
$('[data-bs-toggle="tooltip"]').tooltip({html: true});
|
2024-02-20 17:01:16 +01:00
|
|
|
});
|
2022-08-01 17:51:43 +02:00
|
|
|
</script>
|
|
|
|
|
2024-02-20 17:01:16 +01:00
|
|
|
<table id="bodyHashesTable" class="table table-striped" style="width:100%">
|
2022-08-01 17:51:43 +02:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Captures total</th>
|
2024-02-21 14:36:19 +01:00
|
|
|
<th>File type</th>
|
|
|
|
<th>Ressource URL in capture</th>
|
2022-08-01 17:51:43 +02:00
|
|
|
<th>Hash (sha512)</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for body_hash, info in body_hashes.items() %}
|
|
|
|
{% set icon_info = get_icon(info['node'].generic_type) %}
|
|
|
|
<tr>
|
2024-02-21 14:36:19 +01:00
|
|
|
<td>{{ info['total_captures'] }}</td>
|
2022-08-01 17:51:43 +02:00
|
|
|
<td>
|
2024-03-14 17:27:39 +01:00
|
|
|
{{popup_icons_response(info['node'], tree_uuid)}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<p class="text-break">{{ info['node'].name }}</p>
|
|
|
|
<a href="#/" onclick="openTreeInNewTab('{{ tree_uuid }}', '{{ info['node'].uuid }}')">Show on tree</a>
|
2022-08-01 17:51:43 +02:00
|
|
|
</td>
|
|
|
|
<td>
|
2023-07-31 16:54:37 +02:00
|
|
|
<span class="d-inline-block text-truncate" style="max-width: 200px;">
|
2024-02-20 17:01:16 +01:00
|
|
|
<a href="#bodyHashDetailsModal" data-remote="{{ url_for('body_hash_details', body_hash=body_hash) }}"
|
|
|
|
data-bs-toggle="modal" data-bs-target="#bodyHashDetailsModal" role="button">
|
|
|
|
{{body_hash}}
|
|
|
|
</a>
|
2023-07-31 16:54:37 +02:00
|
|
|
</span>
|
2022-08-01 17:51:43 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|