This commit is contained in:
Sebastian Hugentobler 2024-05-06 14:17:25 +02:00
parent ead3672570
commit 6d949bb21e
Signed by: shu
GPG key ID: BB32CF3CA052C2F0
10 changed files with 74 additions and 18 deletions

View file

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