moviewyrm/bookwyrm/templates/snippets/status_header.html

26 lines
1.6 KiB
HTML
Raw Normal View History

2020-04-01 21:55:32 +00:00
{% load fr_display %}
2020-09-29 04:08:42 +00:00
<div class="card-header-title">
2020-09-29 01:25:05 +00:00
<p>
2020-09-28 22:57:31 +00:00
{% include 'snippets/avatar.html' with user=status.user %}
2020-04-01 21:55:32 +00:00
2020-09-28 22:57:31 +00:00
{% include 'snippets/username.html' with user=status.user %}
2020-09-29 01:25:05 +00:00
{% if status.status_type == 'GeneratedNote' %}
{{ status.content | safe }} {% include 'snippets/book_titleby.html' with book=status.mention_books.first %}
{% elif status.status_type == 'Boost' %}
boosted {% include 'snippets/avatar.html' with user=status.boosted_status.user %}{% include 'snippets/username.html' with user=status.boosted_status.user possessive=True %} status
2020-09-28 22:57:31 +00:00
{% elif status.status_type == 'Review' and not status.name and not status.content%}
rated <a href="/book/{{ status.book.id }}">{{ status.book.title }}</a>
{% elif status.status_type == 'Review' %}
reviewed <a href="/book/{{ status.book.id }}">{{ status.book.title }}</a>
{% elif status.status_type == 'Comment' %}
commented on <a href="/book/{{ status.book.id }}">{{ status.book.title }}</a>
{% elif status.status_type == 'Quotation' %}
quoted <a href="/book/{{ status.book.id }}">{{ status.book.title }}</a>
{% elif status.reply_parent %}
{% with parent_status=status|parent %}
2020-09-29 01:25:05 +00:00
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>
2020-09-28 22:57:31 +00:00
{% endwith %}
{% endif %}
2020-09-29 01:25:05 +00:00
</p>
2020-09-28 22:57:31 +00:00
</div>