Persit checkbox state

This commit is contained in:
Ondřej 2023-08-21 11:12:33 +02:00
parent 89f2a7c866
commit 901817409e

View file

@ -36,14 +36,15 @@
<input type="hidden" name="page" value="{{ page }}" />
{% endif %}
<label class="checkbox">
<input type="checkbox" name="expand_diffs" value="true" />
<input type="checkbox" name="expand_diffs" value="true" {{ "checked" if expand_diffs else "" }} />
<p>Expand diffs</p>
</label>
</form>
</div>
</div>
<div class="container mb-8" id="diff-list">
<div id="diff-list">
<div class="container mb-8">
{% for diff in diffs %}
<article class="card px-5 py-4 mb-4">
<p class="flex gap-x-4 gap-y-2 mb-3 flex-wrap shrink-0">
@ -86,14 +87,15 @@
{% endif %}
</article>
{% endfor %}
</div>
</div>
<div class="overflow-x-auto">
<div class="overflow-x-auto">
<div class="container mb-3">
{{ pagination.links }}
</div>
</div>
<div class="container text-sm text-gray-500">
</div>
<div class="container text-sm text-gray-500">
{{ pagination.info }}
</div>
</div>
{% endblock body %}