mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-03 23:06:40 +00:00
976e7ddf79
Fixes #93
40 lines
1.3 KiB
HTML
40 lines
1.3 KiB
HTML
{% load fr_display %}
|
|
|
|
<div class="all-shelves content-container">
|
|
{% 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="cover-container">
|
|
<div >
|
|
<a href="{{ book.absolute_id }}" onclick="show_compose(this, event)" id="book-{{ book.id }}">
|
|
{% include 'snippets/book_cover.html' with book=book %}
|
|
</a>
|
|
</div>
|
|
{% include 'snippets/shelve_button.html' with book=book %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
|
|
{% for shelf in shelves %}
|
|
{% for book in shelf.books %}
|
|
<div class="compose-suggestion" id="compose-book-{{ book.id }}">
|
|
<span class="close icon icon-close" onclick="hide_element(this)">
|
|
<span class="hidden-text">Close</span>
|
|
</span>
|
|
<div class="content-container">
|
|
{% include 'snippets/create_status.html' with book=book user=request.user %}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% endfor %}
|