Creates snippet for book cover tiles layout
This commit is contained in:
parent
2d89d4abf8
commit
acba5cfc75
3 changed files with 28 additions and 33 deletions
|
@ -4,26 +4,7 @@
|
|||
<div class="block">
|
||||
<h2 class="title">Editions of <a href="/book/{{ work.id }}">"{{ work.title }}"</a></h2>
|
||||
|
||||
|
||||
<div class="tile is-ancestor">
|
||||
<div class="tile is-vertical">
|
||||
<div class="tile">
|
||||
{% for book in editions %}
|
||||
{% if forloop.counter0|divisibleby:"5" %}
|
||||
</div>
|
||||
<div class="tile">
|
||||
{% endif %}
|
||||
<div class="tile is-parent is-vertical">
|
||||
<article class="tile is-child box">
|
||||
<a href="/book/{{ book.id }}">
|
||||
{% include 'snippets/book_cover.html' with book=book %}
|
||||
</a>
|
||||
{% include 'snippets/shelve_button.html' with book=book %}
|
||||
</article>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% include 'snippets/book_tiles.html' with books=editions %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue