2020-09-29 04:08:42 +00:00
|
|
|
{% load humanize %}
|
2020-03-10 00:03:59 +00:00
|
|
|
{% load fr_display %}
|
2020-04-01 21:55:32 +00:00
|
|
|
|
2020-10-08 19:38:06 +00:00
|
|
|
{% if not status.deleted %}
|
2020-09-29 22:05:50 +00:00
|
|
|
<div class="card">
|
2020-09-29 04:08:42 +00:00
|
|
|
<header class="card-header">
|
2020-11-02 19:46:23 +00:00
|
|
|
<div class="card-header-title">
|
|
|
|
<p>
|
|
|
|
{% if status.status_type == 'Boost' %}
|
|
|
|
{% include 'snippets/avatar.html' with user=status.user %}
|
|
|
|
{% include 'snippets/username.html' with user=status.user %}
|
|
|
|
boosted
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
{% include 'snippets/status_header.html' with status=status|boosted_status %}
|
|
|
|
{% else %}
|
|
|
|
{% include 'snippets/status_header.html' with status=status %}
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
</div>
|
2020-09-29 01:25:05 +00:00
|
|
|
</header>
|
|
|
|
|
|
|
|
<div class="card-content">
|
|
|
|
{% if status.status_type == 'Boost' %}
|
2020-11-02 19:46:23 +00:00
|
|
|
{% include 'snippets/status_content.html' with status=status|boosted_status %}
|
2020-09-29 01:25:05 +00:00
|
|
|
{% else %}
|
2020-04-02 02:38:07 +00:00
|
|
|
{% include 'snippets/status_content.html' with status=status %}
|
2020-09-29 01:25:05 +00:00
|
|
|
{% endif %}
|
2020-04-02 02:38:07 +00:00
|
|
|
</div>
|
2020-04-01 21:32:56 +00:00
|
|
|
|
2020-09-29 01:25:05 +00:00
|
|
|
<footer class="card-footer">
|
|
|
|
{% if status.status_type == 'Boost' %}
|
2020-11-02 19:46:23 +00:00
|
|
|
{% include 'snippets/interaction.html' with activity=status|boosted_status %}
|
2020-09-29 01:25:05 +00:00
|
|
|
{% else %}
|
|
|
|
{% include 'snippets/interaction.html' with activity=status %}
|
|
|
|
{% endif %}
|
2020-09-29 04:08:42 +00:00
|
|
|
|
|
|
|
<div class="card-footer-item">
|
2020-10-28 19:33:27 +00:00
|
|
|
{% if status.privacy == 'public' %}
|
2020-10-28 19:44:30 +00:00
|
|
|
<span class="icon icon-globe">
|
2020-09-30 22:10:37 +00:00
|
|
|
<span class="is-sr-only">Public post</span>
|
2020-09-29 04:08:42 +00:00
|
|
|
</span>
|
2020-10-28 19:33:27 +00:00
|
|
|
{% elif status.privacy == 'unlisted' %}
|
2020-10-28 19:44:30 +00:00
|
|
|
<span class="icon icon-unlock">
|
2020-10-28 19:33:27 +00: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 19:44:30 +00:00
|
|
|
<span class="icon icon-envelope">
|
2020-10-28 19:33:27 +00:00
|
|
|
<span class="is-sr-only">Private post</span>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
2020-10-08 19:32:45 +00: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 19:44:30 +00:00
|
|
|
<span class="icon icon-x">
|
2020-10-08 19:32:45 +00:00
|
|
|
<span class="is-sr-only">Delete post</span>
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
2020-09-29 04:08:42 +00:00
|
|
|
<a href="{{ status.remote_id }}">{{ status.published_date | naturaltime }}</a>
|
|
|
|
</div>
|
2020-09-29 01:25:05 +00:00
|
|
|
</footer>
|
2020-03-10 00:03:59 +00:00
|
|
|
</div>
|
2020-10-08 19:38:06 +00: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 %}
|