2021-01-03 22:28:28 +00:00
|
|
|
{% load bookwyrm_tags %}
|
2021-08-07 19:33:45 +00:00
|
|
|
{% load utilities %}
|
2021-03-04 22:27:49 +00:00
|
|
|
{% load i18n %}
|
2021-08-08 01:54:00 +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 %}
|
|
|
|
<a href="{{ book.local_path }}">
|
2021-08-11 18:47:25 +00:00
|
|
|
{% include 'snippets/book_cover.html' with cover_class='is-w-l-mobile is-w-auto align to-b to-l' size='large' %}
|
2021-08-08 01:54:00 +00:00
|
|
|
</a>
|
2021-08-07 19:33:45 +00:00
|
|
|
|
2021-08-08 01:54:00 +00:00
|
|
|
<div class="block mt-2">
|
|
|
|
{% include 'snippets/shelve_button/shelve_button.html' %}
|
|
|
|
</div>
|
2021-01-03 19:24:26 +00:00
|
|
|
|
2021-08-08 01:54:00 +00:00
|
|
|
<div class="media block mb-2">
|
|
|
|
<figure class="media-left" aria-hidden="true">
|
|
|
|
<a class="image is-48x48" href="{{ status.user.local_path }}">
|
|
|
|
{% include 'snippets/avatar.html' with user=status.user ariaHide="true" medium="true" %}
|
|
|
|
</a>
|
|
|
|
</figure>
|
2021-04-24 10:48:55 +00:00
|
|
|
|
2021-08-08 01:54:00 +00:00
|
|
|
<div class="media-content">
|
|
|
|
<h3 class="title is-6">
|
|
|
|
<a href="{{ status.user.local_path }}">
|
|
|
|
<span>{{ status.user.display_name }}</span>
|
|
|
|
</a>
|
2021-01-03 19:24:26 +00:00
|
|
|
|
2021-08-08 01:54:00 +00:00
|
|
|
{% if status.status_type == 'GeneratedNote' %}
|
|
|
|
{{ status.content|safe }}
|
|
|
|
{% elif status.status_type == 'Rating' %}
|
|
|
|
{% trans "rated" %}
|
|
|
|
{% elif status.status_type == 'Review' %}
|
|
|
|
{% trans "reviewed" %}
|
|
|
|
{% elif status.status_type == 'Comment' %}
|
|
|
|
{% trans "commented on" %}
|
|
|
|
{% elif status.status_type == 'Quotation' %}
|
|
|
|
{% trans "quoted" %}
|
2021-08-07 21:38:19 +00:00
|
|
|
{% endif %}
|
2021-08-07 19:33:45 +00:00
|
|
|
|
2021-08-08 01:54:00 +00:00
|
|
|
<a href="{{ book.local_path }}">{{ book.title }}</a>
|
|
|
|
</h3>
|
|
|
|
{% if status.rating %}
|
2021-04-24 10:48:55 +00:00
|
|
|
<p class="subtitle is-6">
|
2021-08-08 01:54:00 +00:00
|
|
|
{% include 'snippets/stars.html' with rating=status.rating %}
|
2021-04-24 10:48:55 +00:00
|
|
|
</p>
|
2021-08-08 01:54:00 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="block">
|
|
|
|
<a href="{{ status.remote_id }}">
|
|
|
|
<span>{% trans "View status" %}</span>
|
|
|
|
<span class="icon icon-arrow-right" aria-hidden="true"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="block">
|
|
|
|
{% include 'snippets/follow_button.html' with user=status.user show_username=True minimal=True %}
|
|
|
|
</div>
|
2021-01-03 22:28:28 +00:00
|
|
|
{% endif %}
|