lookyloo/website/web/templates/cookie_name.html

57 lines
1.3 KiB
HTML
Raw Normal View History

{% from "macros.html" import shorten_string %}
{% if from_popup %}
2020-06-15 16:17:09 +02:00
{% extends "main.html" %}
{% from 'bootstrap5/utils.html' import render_messages %}
{% block title %}{{ cookie_name }}{% endblock %}
{%endif%}
2020-06-15 16:17:09 +02:00
{% block content %}
{% if from_popup %}
<center><button class="btn btn-primary goBack" type="button">Go Back</button></center>
{%endif%}
<center>
<h4>{{ cookie_name }}</h4>
<h6>Only the most recent captures are listed below, this will change soon.</h6>
</center>
<table id="cookieNameTable" class="table table-striped" style="width:100%">
<thead>
<tr>
<th>Capture Time</th>
<th>Capture Title</th>
</tr>
</thead>
<tbody>
{% for capture_uuid, title, capture_time, nodes in captures %}
<tr>
<td>
{{capture_time}}
</td>
<td>
<a href="{{ url_for('tree', tree_uuid=capture_uuid) }}">
{{ title }}
</a>
<br>
The capture contains this URL in {{ nodes|length }} nodes, click below to see them on the tree:
<ul>
{% for node in nodes %}
<li>
<button type="button" class="btn btn-link openNewTab" data-capture="{{capture_uuid}}" data-hostnode="{{node}}">{{ node }}</button>
</li>
{% endfor %}
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
2020-06-15 16:17:09 +02:00
{% endblock %}