From 01911d3b23715e3f5013e8a25af3934865eb9b1b Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 14 Oct 2021 17:33:45 -0700 Subject: [PATCH] Update and indicate edit status --- bookwyrm/templates/snippets/status/header.html | 3 +++ bookwyrm/views/status.py | 1 + 2 files changed, 4 insertions(+) diff --git a/bookwyrm/templates/snippets/status/header.html b/bookwyrm/templates/snippets/status/header.html index 62eae5481..c2f529bee 100644 --- a/bookwyrm/templates/snippets/status/header.html +++ b/bookwyrm/templates/snippets/status/header.html @@ -30,6 +30,9 @@ {% include "snippets/status/header_content.html" %} + {% if status.edited %} + (edited) + {% endif %}

{{ status.published_date|published_date }} diff --git a/bookwyrm/views/status.py b/bookwyrm/views/status.py index d1f2fd1ef..4771ceb20 100644 --- a/bookwyrm/views/status.py +++ b/bookwyrm/views/status.py @@ -60,6 +60,7 @@ class CreateStatus(View): models.Status.objects.select_subclasses(), id=existing_status_id ) existing_status.raise_not_editable(request.user) + existing_status.edited = True status_type = status_type[0].upper() + status_type[1:]