From 142ed70d4d7eaa6b202aa3118a3aac3d8c41dfa7 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 23 Aug 2024 16:42:39 -0700 Subject: [PATCH] Sets edit status header to indicate status type Fixes #2671 --- bookwyrm/templates/compose.html | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/bookwyrm/templates/compose.html b/bookwyrm/templates/compose.html index ca0d8296a..112088648 100644 --- a/bookwyrm/templates/compose.html +++ b/bookwyrm/templates/compose.html @@ -2,10 +2,31 @@ {% load i18n %} {% load utilities %} -{% block title %}{% trans "Edit status" %}{% endblock %} +{% block title %} + {% if draft.status_type == "Review" %} + {% trans "Edit review" %} + {% elif draft.status_type == "Quotation" %} + {% trans "Edit quote" %} + {% elif draft.status_type == "Comment" %} + {% trans "Edit comment" %} + {% else %} + {% trans "Edit status" %} + {% endif %} +{% endblock %} + {% block content %}
-

{% trans "Edit status" %}

+

+ {% if draft.status_type == "Review" %} + {% trans "Edit review" %} + {% elif draft.status_type == "Quotation" %} + {% trans "Edit quote" %} + {% elif draft.status_type == "Comment" %} + {% trans "Edit comment" %} + {% else %} + {% trans "Edit status" %} + {% endif %} +

{% with 0|uuid as uuid %}