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

20 lines
486 B
HTML
Raw Normal View History

2024-05-02 16:10:29 +00:00
{% extends "base" %}
2024-05-06 12:42:14 +00:00
{% block title %}
{% if has_previous %}
<a class="secondary" href="/books/{{ backward_cursor }}/DESC">← back</a>
{% endif %}
{% if has_previous and has_more %}|{% endif%}
{% if has_more %}
<a class="secondary" href="/books/{{ forward_cursor }}/ASC">more →</a>
{% endif %}
{% endblock title %}
2024-05-02 16:10:29 +00:00
{% block content %}
<div class="grid-container">
2024-05-06 08:40:34 +00:00
{% for book in books %}
2024-05-06 12:42:14 +00:00
{% include "book_card" %}
2024-05-06 08:40:34 +00:00
{% endfor %}
2024-05-02 16:10:29 +00:00
</div>
{% endblock content %}