bookwyrm/fedireads/templates/snippets/status_header.html

26 lines
1.2 KiB
HTML
Raw Normal View History

2020-04-01 21:55:32 +00:00
{% load humanize %}
{% load fr_display %}
{% include 'snippets/avatar.html' with user=status.user %}
{% include 'snippets/username.html' with user=status.user %}
{% if status.status_type == 'Update' %}
{{ status.content | safe }}
2020-04-03 19:43:49 +00:00
{% elif status.status_type == 'Review' and not status.name and not status.content%}
2020-05-04 01:07:06 +00:00
rated <a href="/book/{{ status.book.id }}">{{ status.book.title }}</a>
2020-04-01 21:55:32 +00:00
{% elif status.status_type == 'Review' %}
2020-05-04 01:07:06 +00:00
reviewed <a href="/book/{{ status.book.id }}">{{ status.book.title }}</a>
2020-04-01 21:55:32 +00:00
{% elif status.status_type == 'Comment' %}
2020-05-04 01:07:06 +00:00
commented on <a href="/book/{{ status.book.id }}">{{ status.book.title }}</a>
2020-04-08 16:40:47 +00:00
{% elif status.status_type == 'Quotation' %}
2020-05-04 01:07:06 +00:00
quoted <a href="/book/{{ status.book.id }}">{{ status.book.title }}</a>
2020-04-01 21:55:32 +00:00
{% elif status.status_type == 'Boost' %}
boosted
{% 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 }}">{{ parent_status.status_type | lower }}</a>
2020-04-01 21:55:32 +00:00
{% endwith %}
{% endif %}
<span class="time-ago">
<a href="{{ status.remote_id }}">{{ status.published_date | naturaltime }}</a>
2020-04-01 21:55:32 +00:00
</span>