mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-29 03:20:32 +00:00
20 lines
694 B
HTML
20 lines
694 B
HTML
{% load fr_display %}
|
|
{% for shelf in shelves %}
|
|
{% if shelf.books %}
|
|
<div>
|
|
<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 class="covers-shelf {{ shelf.identifier }}">
|
|
{% for book in shelf.books %}
|
|
<div class="book-preview" onclick="show_compose(this)" id="book-{{ book.id }}">
|
|
{% include 'snippets/book_cover.html' with book=book %}
|
|
{% include 'snippets/shelve_button.html' with book=book %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|