2023-08-16 18:52:24 +02:00
|
|
|
{% extends "base.html" %}
|
2022-08-25 15:10:08 +02:00
|
|
|
|
2023-08-17 10:50:02 +02:00
|
|
|
{% block header_class %}header-extended{% endblock header_class %}
|
|
|
|
|
2023-08-16 18:52:24 +02:00
|
|
|
{% block body %}
|
2023-08-17 18:06:25 +02:00
|
|
|
<div class="home-filters">
|
2023-08-17 00:06:57 +02:00
|
|
|
<div class="container">
|
2023-08-16 21:57:31 +02:00
|
|
|
<form method="get">
|
2023-08-17 12:19:54 +02:00
|
|
|
<input
|
2023-08-17 18:06:25 +02:00
|
|
|
class="text-input"
|
2023-08-17 12:19:54 +02:00
|
|
|
type="text"
|
|
|
|
id="search"
|
|
|
|
name="search"
|
|
|
|
value="{{ search|e }}"
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
class="button"
|
|
|
|
type="submit"
|
|
|
|
value="Hledat"
|
|
|
|
>
|
|
|
|
Hledat
|
|
|
|
<svg class="inline-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"></path></svg>
|
|
|
|
</button>
|
2023-08-16 21:57:31 +02:00
|
|
|
</form>
|
2023-08-17 18:06:25 +02:00
|
|
|
<label class="checkbox">
|
2023-08-18 08:52:08 +02:00
|
|
|
<input type="checkbox" name="expand_diffs" value="true"
|
2023-08-17 18:06:25 +02:00
|
|
|
hx-get="/"
|
|
|
|
hx-target="#diff-list"
|
|
|
|
hx-select="#diff-list"
|
|
|
|
hx-swap="outerHTML"
|
|
|
|
/>
|
2023-08-18 08:52:08 +02:00
|
|
|
<p>Expand diffs</p>
|
2023-08-17 18:06:25 +02:00
|
|
|
</label>
|
2023-08-16 21:57:31 +02:00
|
|
|
</div>
|
2023-08-17 00:06:57 +02:00
|
|
|
</div>
|
2023-08-16 21:09:18 +02:00
|
|
|
|
2023-08-17 18:06:25 +02:00
|
|
|
<div class="container home-diff-list" id="diff-list">
|
2023-08-16 21:09:18 +02:00
|
|
|
{% for diff in diffs %}
|
2023-08-17 17:28:19 +02:00
|
|
|
<article class="card changeset-card">
|
|
|
|
<p class="changeset-card-actions">
|
|
|
|
<span class="changeset-card-feed-name">{{ diff.feed_name }}</span>
|
|
|
|
<time class="changeset-card-time">{{ diff.diff_time }}</time>
|
|
|
|
<a class="changeset-card-action" href="{{ diff.article_url }}">
|
2023-08-16 21:57:31 +02:00
|
|
|
<svg class="inline-icon" 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>
|
2023-08-16 23:01:45 +02:00
|
|
|
Display current article
|
2023-08-16 21:09:18 +02:00
|
|
|
</a>
|
2023-08-17 17:28:19 +02:00
|
|
|
<a class="changeset-card-action" href="/article/{{ diff.article_id }}">
|
2023-08-16 21:57:31 +02:00
|
|
|
<svg class="inline-icon" 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>
|
2023-08-16 21:09:18 +02:00
|
|
|
Show change history
|
2023-08-16 23:01:45 +02:00
|
|
|
</a>
|
2023-08-16 21:09:18 +02:00
|
|
|
</p>
|
2023-08-17 17:28:19 +02:00
|
|
|
|
2023-08-18 08:52:08 +02:00
|
|
|
{% if expand_diffs %}
|
2023-08-17 18:06:25 +02:00
|
|
|
<div class="changeset-card-diff-s">
|
|
|
|
<div>
|
|
|
|
<div class="text-caption">Before</div>
|
|
|
|
<div class="diff-before changeset-card-title">{{ diff.diff_html|safe }}</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="text-caption">After</div>
|
|
|
|
<div class="diff-after changeset-card-title">{{ diff.diff_html|safe }}</div>
|
|
|
|
</div>
|
2023-08-17 17:28:19 +02:00
|
|
|
</div>
|
|
|
|
|
2023-08-17 18:06:25 +02:00
|
|
|
<table class="changeset-card-diff-m">
|
|
|
|
<tr>
|
|
|
|
<th class="text-caption table-head">Before</th>
|
|
|
|
<td class="diff-before changeset-card-title">{{ diff.diff_html|safe }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th class="text-caption table-head">After</th>
|
|
|
|
<td class="diff-after changeset-card-title">{{ diff.diff_html|safe }}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2023-08-18 08:52:08 +02:00
|
|
|
{% else %}
|
|
|
|
<div class="changeset-card-title">{{ diff.diff_html|safe }}</div>
|
2023-08-17 18:06:25 +02:00
|
|
|
{% endif %}
|
2023-08-16 21:09:18 +02:00
|
|
|
</article>
|
|
|
|
{% endfor %}
|
2023-08-17 10:50:02 +02:00
|
|
|
</div>
|
2023-08-16 21:09:18 +02:00
|
|
|
|
2023-08-17 12:19:54 +02:00
|
|
|
<div class="container pagination-container">
|
2023-08-16 19:41:55 +02:00
|
|
|
{{ pagination.links }}
|
2023-08-17 12:19:54 +02:00
|
|
|
</div>
|
|
|
|
<div class="container">
|
2023-08-16 19:41:55 +02:00
|
|
|
{{ pagination.info }}
|
2023-08-16 18:52:24 +02:00
|
|
|
</div>
|
|
|
|
{% endblock body %}
|