headline/view/templates/index.html

57 lines
1.1 KiB
HTML
Raw Normal View History

2023-08-16 18:52:24 +02:00
{% extends "base.html" %}
2022-08-25 15:10:08 +02:00
2023-08-16 18:52:24 +02:00
{% block body %}
<div class="container">
2023-08-16 19:41:55 +02:00
<form method="get">
<div class="d-flex">
2023-08-16 18:52:24 +02:00
<input
class="m-2 form-control"
type="text"
id="search"
name="search"
value="{{ search|e }}"
/>
2023-08-16 19:41:55 +02:00
<button
class="button"
2023-08-16 18:52:24 +02:00
type="submit"
value="Hledat"
2023-08-16 19:41:55 +02:00
>Hledat</button>
</div>
</form>
2023-08-16 18:52:24 +02:00
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th>Detection time</th>
<th>Source</th>
<th>Diff</th>
<th>Original</th>
<th>Changed</th>
</tr>
</thead>
<tbody>
{% for diff in diffs %}
<tr>
<td>{{ diff.diff_time }}</td>
<td>
<a href="{{ diff.article_url }}" target="_blank"
>{{ diff.feed_name }}</a
>
</td>
<td>{{ diff.diff_html|safe }}</td>
<td class="expanded">
<span class="long">{{ diff.title_orig }} </span>
</td>
<td class="expanded">
<span class="long">{{ diff.title_new}} </span>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
2023-08-16 19:41:55 +02:00
{{ pagination.links }}
{{ pagination.info }}
2023-08-16 18:52:24 +02:00
</div>
{% endblock body %}