paginated authors

This commit is contained in:
Sebastian Hugentobler 2024-05-06 13:51:49 +02:00
parent 352d4e0a7a
commit ead3672570
Signed by: shu
GPG key ID: BB32CF3CA052C2F0
12 changed files with 175 additions and 23 deletions

View file

@ -0,0 +1,19 @@
{% extends "base" %}
{% block title %}
{% if has_previous %}
<a href="/authors/{{ backward_cursor }}/DESC">← back</a>
{% endif %}
{% if has_previous and has_more %}|{% endif%}
{% if has_more %}
<a href="/authors/{{ forward_cursor }}/ASC">more →</a>
{% endif %}
{% endblock title %}
{% block content %}
<div class="grid-container">
{% for author in authors %}
<article>{{ author.name }}</article>
{% endfor %}
</div>
{% endblock content %}