lookyloo/website/web/templates/ressources.html

61 lines
1.7 KiB
HTML
Raw Normal View History

2020-09-04 18:40:51 +02:00
{% extends "main.html" %}
{% from 'bootstrap/utils.html' import render_messages %}
{% from 'macros.html' import shorten_string %}
{% from 'macros.html' import get_ressource_button %}
{% from 'macros.html' import context_form %}
{% block title %}Ressources{% endblock %}
{% block scripts %}
{{ super() }}
<script type="text/javascript">
$('#table').DataTable( {
"order": [[ 2, "desc" ]],
"pageLength": 500
});
</script>
2021-03-04 18:10:54 +01:00
<script>
$(document).ready(() => {
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
});
</script>
2020-09-04 18:40:51 +02:00
{% endblock %}
{% block content %}
<div class="table-responsive">
<table id="table" class="table" style="width:96%">
<thead>
<tr>
<th>SHA 521</th>
<th>Frequency</th>
<th>Number unique domains</th>
<th>Context</th>
2021-03-04 18:10:54 +01:00
<th>Mimetype</th>
<th>Filename</th>
2020-09-04 18:40:51 +02:00
</tr>
</thead>
<tbody>
2021-03-04 18:10:54 +01:00
{% for h, freq, number_domains, context, capture_uuid, urlnode_uuid, hostnode_uuid, filename, mimetype in ressources %}
2020-09-04 18:40:51 +02:00
<tr>
<td>
2021-03-04 18:10:54 +01:00
<a href="{{ url_for('body_hash_details', body_hash=h) }}">{{ shorten_string(h, 10) }}</a></br>
{{ get_ressource_button(capture_uuid, urlnode_uuid, h, 'Download sample', mimetype and mimetype.startswith('image')) }}
2020-09-04 18:40:51 +02:00
</td>
<td>{{ freq }}</td>
<td>{{ number_domains }}</td>
<td> {{ context['type'] }} - {{ context['details'] }}</br>
{{ context_form(capture_uuid, urlnode_uuid, hostnode_uuid, h, 'ressources') }}
</td>
2021-03-04 18:10:54 +01:00
<td>{{ mimetype }}</td>
<td>{{ shorten_string(filename, 10) }}</td>
2020-09-04 18:40:51 +02:00
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}