moviewyrm/bookwyrm/templates/discover/small-book.html

14 lines
445 B
HTML
Raw Normal View History

{% load bookwyrm_tags %}
{% if book %}
<a href="{{ book.local_path }}">{% include 'snippets/book_cover.html' with book=book %}</a>
2021-01-16 19:34:19 +00:00
{% if ratings %}
{% include 'snippets/stars.html' with rating=ratings|dict_key:book.id %}
2021-01-16 19:34:19 +00:00
{% 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 %}