moviewyrm/bookwyrm/templates/snippets/covers_shelf.html

24 lines
686 B
HTML
Raw Normal View History

2020-03-15 21:15:36 +00:00
{% load fr_display %}
2020-04-01 19:32:24 +00:00
{% for shelf in shelves %}
2020-09-29 04:08:42 +00:00
{% if shelf.books %}
<div class="container">
<h2>{{ shelf.name }}
{% if shelf.size > shelf.books|length %}
<small>(<a href="/shelf/{{ user | username }}/{{ shelf.identifier }}">See all {{ shelf.size }}</a>)</small>
{% endif %}
</h2>
<div>
{% for book in shelf.books %}
<div>
<label for="book-{{ book.id }}-radio">
{% include 'snippets/book_cover.html' with book=book %}
</label>
{% include 'snippets/shelve_button.html' with book=book hide_pulldown=True %}
</div>
2020-09-29 04:08:42 +00:00
{% endfor %}
</div>
</div>
2020-09-29 04:08:42 +00:00
{% endif %}
2020-03-15 21:15:36 +00:00
{% endfor %}