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

35 lines
977 B
HTML
Raw Normal View History

2024-05-06 08:40:34 +00:00
<article class="book-card">
<header class="grid-item">
<hgroup>
2024-05-10 12:31:11 +00:00
<h5>{{ book.data.title }}</h5>
2024-05-06 18:54:58 +00:00
<p>
<a class="secondary" href="/authors/{{ book.author.id }}">{{ book.author.name }}</a>
</p>
{% if book.series %}
<p>
<small>
<a class="secondary" href="/series/{{ book.series.0.id }}">{{ book.series.0.name }} ({{ book.series.1 }})</a>
</small>
</p>
{% endif %}
2024-05-06 08:40:34 +00:00
</hgroup>
</header>
2024-05-10 12:31:11 +00:00
<img class="cover" src="/cover/{{ book.data.id }}" alt="book cover">
2024-05-06 08:40:34 +00:00
<footer>
<form>
<fieldset role="group">
<details class="dropdown">
<summary role="button" class="outline">
Download
</summary>
<ul>
{% for format, _ in book.formats %}
2024-05-10 12:31:11 +00:00
<li><a href="/book/{{ book.data.id }}/{{ format }}">{{ format }}</a></li>
2024-05-06 08:40:34 +00:00
{% endfor %}
</ul>
</details>
</fieldset>
</form>
</footer>
</article>