Makes covers clickable on discover page

This commit is contained in:
Mouse Reeve
2021-02-23 14:06:08 -08:00
parent fdbd3688f4
commit 31c9c07e38
4 changed files with 9 additions and 9 deletions

View File

@ -0,0 +1,13 @@
{% load bookwyrm_tags %}
{% if book %}
<a href="{{ book.local_path }}">{% include 'snippets/book_cover.html' with book=book %}</a>
{% if ratings %}
{% include 'snippets/stars.html' with rating=ratings|dict_key:book.id %}
{% endif %}
<h3 class="title is-6"><a href="/book/{{ book.id }}">{{ book.title }}</a></h3>
{% if book.authors %}
<p class="subtitle is-6">by {% include 'snippets/authors.html' with book=book %}</p>
{% endif %}
{% endif %}