little-hesinde/rusty-library/templates/book_card.html
2024-05-06 10:55:18 +02:00

26 lines
659 B
HTML

<article class="book-card">
<header class="grid-item">
<hgroup>
<h5>{{ book.title }}</h5>
<p>{{ book.author }}</p>
</hgroup>
</header>
<img class="cover" src="/cover/{{ book.id }}" alt="book cover">
<footer>
<form>
<fieldset role="group">
<details class="dropdown">
<summary role="button" class="outline">
Download
</summary>
<ul>
{% for format, _ in book.formats %}
<li><a href="/book/{{ book.id }}/{{ format }}">{{ format }}</a></li>
{% endfor %}
</ul>
</details>
</fieldset>
</form>
</footer>
</article>