lookyloo/website/web/templates/cookies.html

49 lines
1.1 KiB
HTML

{% extends "main.html" %}
{% from 'bootstrap/utils.html' import render_messages %}
{% block title %}Cookies lookup{% endblock %}
{% block scripts %}
{{ super() }}
<script src='{{ url_for('static', filename='datatables.min.js') }}'></script>
<script type="text/javascript">
$('#table').DataTable( {
"order": [[ 1, "desc" ]],
"pageLength": 500
});
</script>
{% endblock %}
{% block styles %}
{{ super() }}
<link rel="stylesheet" href="{{ url_for('static', filename='datatables.min.css') }}">
{% endblock %}
{% block content %}
<div class="table-responsive">
<table id="table" class="table" style="width:96%">
<thead>
<tr>
<th>Cookie name</th>
<th>Frequency</th>
<th>Number unique domains</th>
</tr>
</thead>
<tbody>
{% for name, freq, number_domains in cookies_names %}
<tr>
<td>
<a href="{{ url_for('cookies_name_detail', cookie_name=name) }}">{{ name }}</a>
</td>
<td>{{ freq }}</td>
<td>{{ number_domains }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}