Don't show deleted statuses

This commit is contained in:
Mouse Reeve 2020-10-08 12:38:06 -07:00
parent 48df06aea7
commit 0d614c7ebb

View file

@ -1,6 +1,7 @@
{% load humanize %} {% load humanize %}
{% load fr_display %} {% load fr_display %}
{% if not status.deleted %}
<div class="card"> <div class="card">
<header class="card-header"> <header class="card-header">
{% include 'snippets/status_header.html' with status=status %} {% include 'snippets/status_header.html' with status=status %}
@ -40,3 +41,14 @@
</div> </div>
</footer> </footer>
</div> </div>
{% 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 %}