2020-12-13 02:25:04 +00:00
|
|
|
{% load bookwyrm_tags %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
2021-03-07 13:39:18 +00:00
|
|
|
{% include 'snippets/avatar.html' with user=status.user ariaHide="true" %}
|
2020-11-02 19:46:23 +00:00
|
|
|
{% include 'snippets/username.html' with user=status.user %}
|
2020-04-01 21:55:32 +00:00
|
|
|
|
2020-11-02 19:46:23 +00:00
|
|
|
{% if status.status_type == 'GeneratedNote' %}
|
|
|
|
{{ status.content | safe }}
|
|
|
|
{% elif status.status_type == 'Review' and not status.name and not status.content%}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% trans "rated" %}
|
2020-11-02 19:46:23 +00:00
|
|
|
{% elif status.status_type == 'Review' %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% trans "reviewed" %}
|
2020-11-02 19:46:23 +00:00
|
|
|
{% elif status.status_type == 'Comment' %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% trans "commented on" %}
|
2020-11-02 19:46:23 +00:00
|
|
|
{% elif status.status_type == 'Quotation' %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% trans "quoted" %}
|
2020-11-02 19:46:23 +00:00
|
|
|
{% elif status.reply_parent %}
|
|
|
|
{% with parent_status=status|parent %}
|
|
|
|
replied to {% include 'snippets/username.html' with user=parent_status.user possessive=True %} <a href="{{parent_status.remote_id }}">{% if parent_status.status_type == 'GeneratedNote' %}update{% else %}{{ parent_status.status_type | lower }}{% endif %}</a>
|
|
|
|
{% endwith %}
|
|
|
|
{% endif %}
|
|
|
|
{% if status.book %}
|
|
|
|
<a href="/book/{{ status.book.id }}">{{ status.book.title }}</a>
|
|
|
|
{% elif status.mention_books %}
|
|
|
|
<a href="/book/{{ status.mention_books.first.id }}">{{ status.mention_books.first.title }}</a>
|
|
|
|
{% endif %}
|