2024-05-14 18:52:26 +02:00
|
|
|
{% from "macros.html" import shorten_string %}
|
2021-03-18 00:40:14 +01:00
|
|
|
|
2024-05-14 18:52:26 +02:00
|
|
|
{% block content %}
|
2021-03-18 00:40:14 +01:00
|
|
|
|
2024-05-14 18:52:26 +02:00
|
|
|
<center>
|
|
|
|
<h4>{{ url }}</h4>
|
|
|
|
</center>
|
2021-03-18 00:40:14 +01:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
2024-05-14 18:52:26 +02:00
|
|
|
new DataTable('#urlTable', {
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ width: '40%', targets: 1 },
|
|
|
|
{ width: '40%', targets: 2 }],
|
|
|
|
});
|
2021-03-18 00:40:14 +01:00
|
|
|
</script>
|
|
|
|
|
2024-05-14 18:52:26 +02:00
|
|
|
<table id="urlTable" class="table table-striped" style="width:100%">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Capture Time</th>
|
|
|
|
<th>Capture Title</th>
|
|
|
|
<th>Landing page</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for capture_uuid, title, landing_page, capture_time in captures %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
{{capture_time}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="{{ url_for('tree', tree_uuid=capture_uuid) }}">
|
|
|
|
{{ title }}
|
|
|
|
</a>
|
|
|
|
</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 %}
|