2021-04-24 10:48:55 +00:00
|
|
|
|
2021-01-03 22:28:28 +00:00
|
|
|
{% load bookwyrm_tags %}
|
2021-03-04 22:27:49 +00:00
|
|
|
{% load i18n %}
|
2021-04-24 10:48:55 +00:00
|
|
|
|
2021-01-03 22:28:28 +00:00
|
|
|
{% if book %}
|
2021-04-24 10:48:55 +00:00
|
|
|
{% with book=book %}
|
2021-04-27 14:27:39 +00:00
|
|
|
<a href="{{ book.local_path }}">
|
|
|
|
{% include 'snippets/book_cover.html' with cover_class='is-w-l-mobile is-h-l-tablet is-w-auto align to-b to-l' %}
|
|
|
|
</a>
|
2021-01-03 19:24:26 +00:00
|
|
|
|
2021-04-24 10:48:55 +00:00
|
|
|
{% include 'snippets/stars.html' with rating=book|rating:request.user %}
|
|
|
|
|
|
|
|
<h3 class="title is-6">
|
|
|
|
<a href="/book/{{ book.id }}">{{ book.title }}</a>
|
|
|
|
</h3>
|
2021-01-03 19:24:26 +00:00
|
|
|
|
2021-04-24 10:48:55 +00:00
|
|
|
{% if book.authors %}
|
|
|
|
<p class="subtitle is-6">
|
|
|
|
{% trans "by" %}
|
|
|
|
{% include 'snippets/authors.html' %}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
2021-01-03 22:28:28 +00:00
|
|
|
{% endif %}
|