2021-01-03 19:24:26 +00:00
|
|
|
{% load bookwyrm_tags %}
|
2021-05-11 22:14:42 +00:00
|
|
|
{% load markdown %}
|
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
|
|
|
<div class="columns is-gapless">
|
|
|
|
<div class="column is-5-tablet is-cover">
|
2021-04-24 10:48:55 +00:00
|
|
|
<a
|
2021-04-27 14:27:39 +00:00
|
|
|
class="align to-b to-l"
|
2021-04-24 10:48:55 +00:00
|
|
|
href="{{ book.local_path }}"
|
2021-04-27 14:27:39 +00:00
|
|
|
>{% include 'snippets/book_cover.html' with cover_class='is-w-l-mobile is-w-auto-tablet' %}</a>
|
2021-04-24 10:48:55 +00:00
|
|
|
|
|
|
|
{% include 'snippets/stars.html' with rating=book|rating:request.user %}
|
|
|
|
</div>
|
|
|
|
|
2021-04-27 14:27:39 +00:00
|
|
|
|
|
|
|
<div class="column mt-3-mobile ml-3-tablet">
|
2021-04-24 10:48:55 +00:00
|
|
|
<h3 class="title is-5">
|
2021-05-04 16:34:16 +00:00
|
|
|
<a href="{{ book.local_path }}">{{ book.title }}</a>
|
2021-04-24 10:48:55 +00:00
|
|
|
</h3>
|
|
|
|
|
|
|
|
{% if book.authors %}
|
|
|
|
<p class="subtitle is-5">
|
|
|
|
{% trans "by" %}
|
|
|
|
{% include 'snippets/authors.html' %}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if book|book_description %}
|
|
|
|
<blockquote class="content">
|
|
|
|
{{ book|book_description|to_markdown|safe|truncatewords_html:50 }}
|
|
|
|
</blockquote>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endwith %}
|
2021-01-03 22:28:28 +00:00
|
|
|
{% endif %}
|