2020-09-29 00:08:42 -04:00
|
|
|
{% load humanize %}
|
2020-03-09 20:03:59 -04:00
|
|
|
{% load fr_display %}
|
2020-04-01 17:55:32 -04:00
|
|
|
|
2020-10-08 15:38:06 -04:00
|
|
|
{% if not status.deleted %}
|
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">
|
2020-10-28 15:33:27 -04:00
|
|
|
{% if status.privacy == 'public' %}
|
2020-10-28 15:44:30 -04:00
|
|
|
<span class="icon icon-globe">
|
2020-09-30 18:10:37 -04:00
|
|
|
<span class="is-sr-only">Public post</span>
|
2020-09-29 00:08:42 -04:00
|
|
|
</span>
|
2020-10-28 15:33:27 -04:00
|
|
|
{% elif status.privacy == 'unlisted' %}
|
2020-10-28 15:44:30 -04:00
|
|
|
<span class="icon icon-unlock">
|
2020-10-28 15:33:27 -04:00
|
|
|
<span class="is-sr-only">Unlisted post</span>
|
|
|
|
</span>
|
|
|
|
{% elif status.privacy == 'followers' %}
|
|
|
|
<span class="icon icon-lock">
|
|
|
|
<span class="is-sr-only">Followers-only post</span>
|
|
|
|
</span>
|
|
|
|
{% else %}
|
2020-10-28 15:44:30 -04:00
|
|
|
<span class="icon icon-envelope">
|
2020-10-28 15:33:27 -04:00
|
|
|
<span class="is-sr-only">Private post</span>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
2020-10-08 15:32:45 -04:00
|
|
|
{% if status.user == request.user %}
|
|
|
|
<form name="delete-{{status.id}}" action="/delete-status" method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="status" value="{{ status.id }}">
|
|
|
|
<button type="submit">
|
2020-10-28 15:44:30 -04:00
|
|
|
<span class="icon icon-x">
|
2020-10-08 15:32:45 -04:00
|
|
|
<span class="is-sr-only">Delete post</span>
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
2020-09-29 00:08:42 -04:00
|
|
|
<a href="{{ status.remote_id }}">{{ status.published_date | naturaltime }}</a>
|
|
|
|
</div>
|
2020-09-28 21:25:05 -04:00
|
|
|
</footer>
|
2020-03-09 20:03:59 -04:00
|
|
|
</div>
|
2020-10-08 15:38:06 -04:00
|
|
|
{% else %}
|
|
|
|
<div class="card">
|
|
|
|
<header class="card-header">
|
|
|
|
<p>
|
|
|
|
{% include 'snippets/avatar.html' with user=status.user %}
|
|
|
|
{% include 'snippets/username.html' with user=status.user %}
|
|
|
|
deleted this status
|
|
|
|
</p>
|
|
|
|
</header>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|