2022-01-18 20:07:46 +00:00
|
|
|
{% load rating_tags %}
|
2021-03-04 22:27:49 +00:00
|
|
|
{% load i18n %}
|
2021-08-08 01:54:00 +00:00
|
|
|
{% load utilities %}
|
2021-08-07 22:51:53 +00:00
|
|
|
{% load status_display %}
|
2021-04-24 10:48:55 +00:00
|
|
|
|
2021-08-08 01:54:00 +00:00
|
|
|
{% if status.book or status.mention_books.exists %}
|
|
|
|
{% load_book status as book %}
|
|
|
|
<div class="columns is-gapless">
|
|
|
|
<div class="column is-6-tablet is-cover">
|
|
|
|
<a
|
|
|
|
class="align to-b to-l"
|
|
|
|
href="{{ book.local_path }}"
|
2021-08-19 22:30:58 +00:00
|
|
|
>{% include 'snippets/book_cover.html' with cover_class='is-w-l-mobile is-w-auto-tablet' size='xxlarge' %}</a>
|
2021-04-24 10:48:55 +00:00
|
|
|
|
2021-08-08 01:54:00 +00:00
|
|
|
{% include 'snippets/stars.html' with rating=book|rating:request.user %}
|
|
|
|
<h3 class="title is-6">
|
|
|
|
<a href="{{ book.local_path }}">{{ book|book_title }}</a>
|
|
|
|
</h3>
|
2021-08-07 19:33:45 +00:00
|
|
|
|
2021-08-08 01:54:00 +00:00
|
|
|
{% if book.authors %}
|
|
|
|
<p class="subtitle is-6 mb-2">
|
|
|
|
{% trans "by" %}
|
|
|
|
{% include 'snippets/authors.html' with limit=3 %}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2021-08-07 19:33:45 +00:00
|
|
|
|
2021-08-08 01:54:00 +00:00
|
|
|
{% include 'snippets/shelve_button/shelve_button.html' %}
|
|
|
|
</div>
|
2021-04-24 10:48:55 +00:00
|
|
|
|
2021-08-08 01:54:00 +00:00
|
|
|
<div class="column mt-3-mobile ml-3-tablet">
|
|
|
|
<div class="media block mb-2">
|
|
|
|
<figure class="media-left" aria-hidden="true">
|
2022-02-12 15:33:16 +00:00
|
|
|
<a class="image is-48x48" href="{{ status.user.local_path }}" tabindex="-1">
|
2021-08-08 01:54:00 +00:00
|
|
|
{% include 'snippets/avatar.html' with user=status.user ariaHide="true" medium="true" %}
|
|
|
|
</a>
|
|
|
|
</figure>
|
|
|
|
<div class="media-content">
|
|
|
|
<h3 class="title is-6">
|
2021-10-15 21:10:34 +00:00
|
|
|
{% include "discover/card-header.html" %}
|
2021-08-08 01:54:00 +00:00
|
|
|
</h3>
|
2021-08-07 21:38:19 +00:00
|
|
|
</div>
|
2021-08-08 01:54:00 +00:00
|
|
|
</div>
|
2021-08-07 21:38:19 +00:00
|
|
|
|
2021-08-08 01:54:00 +00:00
|
|
|
<div class="block">
|
|
|
|
{% include 'snippets/follow_button.html' with user=status.user show_username=True minimal=True %}
|
|
|
|
</div>
|
2021-04-24 10:48:55 +00:00
|
|
|
|
2021-08-08 01:54:00 +00:00
|
|
|
<div class="notification has-background-white p-2 mb-2 clip-text">
|
|
|
|
{% include "snippets/status/content_status.html" with hide_book=True trim_length=70 hide_more=True %}
|
2021-04-24 10:48:55 +00:00
|
|
|
</div>
|
2021-08-08 01:54:00 +00:00
|
|
|
<a href="{{ status.remote_id }}">
|
|
|
|
<span>{% trans "View status" %}</span>
|
|
|
|
<span class="icon icon-arrow-right" aria-hidden="true"></span>
|
|
|
|
</a>
|
2021-04-24 10:48:55 +00:00
|
|
|
</div>
|
2021-08-08 01:54:00 +00:00
|
|
|
</div>
|
2021-01-03 22:28:28 +00:00
|
|
|
{% endif %}
|