2020-03-15 21:15:36 +00:00
|
|
|
{% load fr_display %}
|
2020-04-01 19:32:24 +00:00
|
|
|
|
|
|
|
<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>
|
2020-04-02 02:38:07 +00:00
|
|
|
<div class="covers-shelf {{ shelf.identifier }} ">
|
2020-04-01 19:32:24 +00:00
|
|
|
{% for book in shelf.books %}
|
2020-04-02 02:38:07 +00:00
|
|
|
<div class="cover-container">
|
2020-04-05 01:59:42 +00:00
|
|
|
<div>
|
|
|
|
<label for="book-{{ book.id }}-radio">
|
2020-04-02 02:38:07 +00:00
|
|
|
{% include 'snippets/book_cover.html' with book=book %}
|
2020-04-05 01:59:42 +00:00
|
|
|
</label>
|
2020-04-02 02:38:07 +00:00
|
|
|
</div>
|
|
|
|
{% include 'snippets/shelve_button.html' with book=book %}
|
2020-04-01 19:32:24 +00:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2020-03-16 23:10:59 +00:00
|
|
|
</div>
|
2020-04-01 19:32:24 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% for shelf in shelves %}
|
|
|
|
{% for book in shelf.books %}
|
2020-04-06 16:28:56 +00:00
|
|
|
<div class="content-container compose-popout">
|
|
|
|
<input name="book-popout" type="radio" id="book-{{ book.id }}-radio"></input>
|
|
|
|
<div class="compose-suggestion" id="compose-book-{{ book.id }}">
|
|
|
|
<label class="close icon icon-close" for="book-{{ book.id }}-radio-close" onclick="hide_element(this)">
|
|
|
|
<span class="hidden-text">Close</span>
|
|
|
|
</label>
|
|
|
|
<input name="book-popout" type="radio" id="book-{{ book.id }}-radio-close"></input>
|
|
|
|
<div class="content-container">
|
|
|
|
{% include 'snippets/create_status.html' with book=book user=request.user %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2020-03-15 21:15:36 +00:00
|
|
|
{% endfor %}
|