moviewyrm/bookwyrm/templates/snippets/status.html
2020-09-30 15:10:37 -07:00

31 lines
1 KiB
HTML

{% load humanize %}
{% load fr_display %}
<div class="card">
<header class="card-header">
{% include 'snippets/status_header.html' with status=status %}
</header>
<div class="card-content">
{% if status.status_type == 'Boost' %}
{% include 'snippets/status_content.html' with status=status.boosted_status %}
{% else %}
{% include 'snippets/status_content.html' with status=status %}
{% endif %}
</div>
<footer class="card-footer">
{% if status.status_type == 'Boost' %}
{% include 'snippets/interaction.html' with activity=status.boosted_status %}
{% else %}
{% include 'snippets/interaction.html' with activity=status %}
{% endif %}
<div class="card-footer-item">
<span class="icon icon-public">
<span class="is-sr-only">Public post</span>
</span>
<a href="{{ status.remote_id }}">{{ status.published_date | naturaltime }}</a>
</div>
</footer>
</div>