2021-01-03 19:24:26 +00:00
|
|
|
{% load bookwyrm_tags %}
|
2021-01-03 22:28:28 +00:00
|
|
|
{% if book %}
|
2021-01-03 19:24:26 +00:00
|
|
|
<div class="columns">
|
|
|
|
<div class="column is-narrow">
|
2021-02-23 22:06:08 +00:00
|
|
|
<a href="{{ book.local_path }}">{% include 'snippets/book_cover.html' with book=book size="large" %}</a>
|
2021-01-03 22:28:28 +00:00
|
|
|
{% include 'snippets/stars.html' with rating=ratings|dict_key:book.id %}
|
2021-01-03 19:24:26 +00:00
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
<h3 class="title is-5"><a href="/book/{{ book.id }}">{{ book.title }}</a></h3>
|
|
|
|
{% if book.authors %}
|
|
|
|
<p class="subtitle is-5">by {% include 'snippets/authors.html' with book=book %}</p>
|
|
|
|
{% endif %}
|
2021-01-03 23:41:20 +00:00
|
|
|
{% if book|book_description %}
|
2021-01-03 19:24:26 +00:00
|
|
|
<blockquote class="content">{{ book|book_description|to_markdown|safe|truncatewords_html:50 }}</blockquote>
|
2021-01-03 23:41:20 +00:00
|
|
|
{% endif %}
|
2021-01-03 19:24:26 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-03 22:28:28 +00:00
|
|
|
{% endif %}
|