moviewyrm/bookwyrm/templates/snippets/status/generated_status.html

33 lines
1 KiB
HTML
Raw Normal View History

2021-04-20 16:54:02 +00:00
{% spaceless %}
{% load bookwyrm_tags %}
2021-05-11 22:14:42 +00:00
{% load markdown %}
2021-04-20 16:54:02 +00:00
{% load i18n %}
2022-01-08 19:43:56 +00:00
{% load cache %}
2021-04-20 16:54:02 +00:00
{% if not hide_book %}
2022-01-08 19:43:56 +00:00
{% cache 259200 generated_status_book status.id %}
{% with book=status.book|default:status.mention_books.first %}
<div class="columns is-mobile is-gapless">
<a class="column is-cover is-narrow" href="{{ book.local_path }}">
2021-05-24 14:18:05 +00:00
{% include 'snippets/book_cover.html' with book=book cover_class='is-h-xs is-h-s-tablet' size='small' size_mobile='xsmall' %}
</a>
<div class="column ml-3">
<h3 class="title is-6 mb-1">
{% include 'snippets/book_titleby.html' with book=book %}
</h3>
<p>
{{ book|book_description|to_markdown|default:""|safe|truncatewords_html:20 }}
</p>
{% include 'snippets/shelve_button/shelve_button.html' with book=book %}
</div>
2021-04-20 16:54:02 +00:00
</div>
{% endwith %}
2022-01-08 19:43:56 +00:00
{% endcache %}
2021-04-20 16:54:02 +00:00
{% endif %}
{% endspaceless %}