headline/view/templates/index.html

56 lines
1.7 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 21:09:18 +02:00
{% for diff in diffs %}
<article class="changeset">
<p class="changeset-actions">
<span class="changeset-feed-name">{{ diff.feed_name }}</span>
<time class="changeset-time">{{ diff.diff_time }}</time>
<a class="changeset-action" href="{{ diff.article_url }}">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z"></path></svg>
Display article
</a>
<a class="changeset-action" href="/article/{{ diff.article_url }}">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM13 12H17V14H11V7H13V12Z"></path></svg>
Show change history
</a>
</p>
<details>
<summary class="changeset-title">
{{ diff.diff_html|safe }}
</summary>
<p>
<strong>Old</strong>:
{{ diff.title_orig }}
</p>
<p>
<strong>New</strong>:
{{ diff.title_new }}
</p>
</details>
</article>
{% endfor %}
2023-08-16 19:41:55 +02:00
{{ pagination.links }}
{{ pagination.info }}
2023-08-16 18:52:24 +02:00
</div>
{% endblock body %}