lookyloo/website/web/templates/index.html

45 lines
1.1 KiB
HTML
Raw Normal View History

2017-07-23 19:56:51 +02:00
{% extends "main.html" %}
2020-02-03 18:30:41 +01:00
{% block title %}Lookyloo{% endblock %}
2017-07-23 19:56:51 +02:00
{% block content %}
<center>
2020-02-03 18:30:41 +01:00
<h2><a href="{{ url_for('scrape_web') }}">Use Lookyloo to scrape a page</a></h2>
</br></br>
2017-07-23 19:56:51 +02:00
</center>
2020-02-03 18:30:41 +01:00
2020-02-03 22:25:48 +01:00
<table class="table" data-toggle="table" data-search="true" data-show-columns="true">
<thead>
<tr>
<th>Page title</th>
<th>Initial URL</th>
<th>Initial redirects</th>
2020-02-04 19:15:44 +01:00
</tr>
2020-02-03 18:30:41 +01:00
</thead>
<tbody>
2020-02-03 22:25:48 +01:00
{% for uuid, page_title, date, time, url, redirects in titles %}
<tr>
<td>
<a href="{{ url_for('tree', tree_uuid=uuid) }}">{{ page_title }}</a>
<div id="timestamp"> <b>{{ date }}</b> {{ time }}</div>
</td>
<td>{{ url }}</td>
<td>
{% if redirects %}
{% for r in redirects %}
2020-02-04 19:15:44 +01:00
{{ r }}
{% if loop.nextitem %}
</br>{{ ("&nbsp;" * (loop.index *2) )|safe }}↪
{%endif%}
2020-02-03 22:25:48 +01:00
{% endfor %}
{% else%}
No redirect
{%endif%}
</td>
</tr>
{% endfor %}
2020-02-03 18:30:41 +01:00
</tbody>
</table>
2017-07-23 19:56:51 +02:00
{% endblock %}