bookwyrm-mastodon/bookwyrm/templates/snippets/status.html

32 lines
1.0 KiB
HTML
Raw Normal View History

2020-09-29 00:08:42 -04:00
{% load humanize %}
{% load fr_display %}
2020-04-01 17:55:32 -04:00
2020-09-29 18:05:50 -04:00
<div class="card">
2020-09-29 00:08:42 -04:00
<header class="card-header">
2020-09-28 21:25:05 -04:00
{% 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 %}
2020-04-01 22:38:07 -04:00
{% include 'snippets/status_content.html' with status=status %}
2020-09-28 21:25:05 -04:00
{% endif %}
2020-04-01 22:38:07 -04:00
</div>
2020-04-01 17:32:56 -04:00
2020-09-28 21:25:05 -04:00
<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 %}
2020-09-29 00:08:42 -04:00
<div class="card-footer-item">
<span class="icon icon-public">
<span class="hidden-text">Public post</span>
</span>
<a href="{{ status.remote_id }}">{{ status.published_date | naturaltime }}</a>
</div>
2020-09-28 21:25:05 -04:00
</footer>
</div>