64 lines
1.4 KiB
HTML
64 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block body %}
|
|
<div class="container">
|
|
<form>
|
|
<div class="d-flex">
|
|
<input
|
|
class="m-2 form-control"
|
|
type="text"
|
|
id="search"
|
|
name="search"
|
|
value="{{ search|e }}"
|
|
/>
|
|
<input
|
|
class="m-2 btn btn-primary"
|
|
type="submit"
|
|
formenctype="application/x-www-form-urlencoded"
|
|
formmethod="get"
|
|
value="Hledat"
|
|
/>
|
|
</div>
|
|
</form>
|
|
<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="short">{{ diff.title_orig|truncate(15) }} </span>
|
|
<span class="long">{{ diff.title_orig }} </span>
|
|
</td>
|
|
<td class="expanded">
|
|
<span class="short">{{ diff.title_new|truncate(15) }} </span>
|
|
<span class="long">{{ diff.title_new}} </span>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="container text-center">
|
|
<div class="row">
|
|
<div class="col">{{ pagination.links }}</div>
|
|
<div class="col">{{ pagination.info }}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock body %}
|