Click through to book pages for no javascript

This commit is contained in:
Mouse Reeve
2020-04-01 14:04:59 -07:00
parent c85eba53db
commit 263b90599c
2 changed files with 4 additions and 3 deletions

View File

@ -11,8 +11,8 @@
</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 %}
<div class="book-preview" onclick="show_compose(this, event)" id="book-{{ book.id }}">
<a href="{{ book.absolute_id }}">{% include 'snippets/book_cover.html' with book=book %}</a>
{% include 'snippets/shelve_button.html' with book=book %}
</div>
{% endfor %}