mirror of https://github.com/CIRCL/lookyloo
40 lines
840 B
HTML
40 lines
840 B
HTML
{% extends "main.html" %}
|
|
|
|
{% from 'bootstrap5/utils.html' import render_messages %}
|
|
|
|
{% block title %}Categories{% endblock %}
|
|
|
|
{% block scripts %}
|
|
{{ super() }}
|
|
<script type="text/javascript" nonce="{{ csp_nonce() }}">
|
|
$('#table').DataTable( {
|
|
"order": [[ 1, "desc" ]],
|
|
"pageLength": 500
|
|
});
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="table-responsive">
|
|
<table id="table" class="table" style="width:96%">
|
|
<thead>
|
|
<tr>
|
|
<th>Category</th>
|
|
<th>Frequency</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for category, freq in categories %}
|
|
<tr>
|
|
<td>
|
|
<a href="{{ url_for('index_category', category=category) }}">{{ category }}</a>
|
|
</td>
|
|
<td>{{ freq }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endblock %}
|