little-hesinde/rusty-library/templates/authors.html

22 lines
577 B
HTML
Raw Normal View History

2024-05-06 11:51:49 +00:00
{% extends "base" %}
{% block title %}
{% if has_previous %}
2024-05-06 12:17:25 +00:00
<a class="secondary" href="/authors/{{ backward_cursor }}/DESC">← back</a>
2024-05-06 11:51:49 +00:00
{% endif %}
{% if has_previous and has_more %}|{% endif%}
{% if has_more %}
2024-05-06 12:17:25 +00:00
<a class="secondary" href="/authors/{{ forward_cursor }}/ASC">more →</a>
2024-05-06 11:51:49 +00:00
{% endif %}
{% endblock title %}
{% block content %}
<div class="grid-container">
{% for author in authors %}
2024-05-06 12:17:25 +00:00
<a class="contrast" href="/authors/{{ author.id }}">
<article>{{ author.name }}</article>
</a>
2024-05-06 11:51:49 +00:00
{% endfor %}
</div>
{% endblock content %}