From a9daa4670eda49086d665c561e6e0f6f04a5cf89 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 15 Oct 2021 14:41:14 -0700 Subject: [PATCH 1/3] Retain reading status on comments --- bookwyrm/templates/snippets/create_status/layout.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bookwyrm/templates/snippets/create_status/layout.html b/bookwyrm/templates/snippets/create_status/layout.html index 43b4cdcaf..8d24fa021 100644 --- a/bookwyrm/templates/snippets/create_status/layout.html +++ b/bookwyrm/templates/snippets/create_status/layout.html @@ -33,6 +33,9 @@ reply_parent: the Status object this post will be in reply to, if applicable + {% if draft %} + + {% endif %} {% endblock %} {% include "snippets/create_status/content_warning_field.html" %} From 896885bffd2c4b2bf94d111e22a825a001026fc7 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 15 Oct 2021 14:43:02 -0700 Subject: [PATCH 2/3] Don't show progress field on status update comments Also retitle the view --- bookwyrm/templates/compose.html | 4 ++-- bookwyrm/templates/snippets/create_status/comment.html | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bookwyrm/templates/compose.html b/bookwyrm/templates/compose.html index 3a222cf6a..cc6009720 100644 --- a/bookwyrm/templates/compose.html +++ b/bookwyrm/templates/compose.html @@ -2,10 +2,10 @@ {% load i18n %} {% load utilities %} -{% block title %}{% trans "Compose status" %}{% endblock %} +{% block title %}{% trans "Edit status" %}{% endblock %} {% block content %}
-

{% trans "Compose status" %}

+

{% trans "Edit status" %}

{% with 0|uuid as uuid %} diff --git a/bookwyrm/templates/snippets/create_status/comment.html b/bookwyrm/templates/snippets/create_status/comment.html index 82ccdbe70..10cdf639f 100644 --- a/bookwyrm/templates/snippets/create_status/comment.html +++ b/bookwyrm/templates/snippets/create_status/comment.html @@ -15,6 +15,7 @@ uuid: a unique identifier used to make html "id" attributes unique and clarify j {% trans "Some thoughts on the book" as placeholder %} {% block post_content_additions %} + {% if not draft.reading_status %} {# Supplemental fields #}
{% active_shelf book as active_shelf %} @@ -68,6 +69,7 @@ uuid: a unique identifier used to make html "id" attributes unique and clarify j {% endwith %} {% endif %}
+ {% endif %} {% endblock %} {% endwith %} From 0e30d1f856df9348cfefc510eaacb0f66b8b48f4 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 15 Oct 2021 14:45:26 -0700 Subject: [PATCH 3/3] Show status header on edit page --- bookwyrm/templates/compose.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bookwyrm/templates/compose.html b/bookwyrm/templates/compose.html index cc6009720..ca0d8296a 100644 --- a/bookwyrm/templates/compose.html +++ b/bookwyrm/templates/compose.html @@ -22,6 +22,10 @@
{% if draft.reply_parent %} {% include 'snippets/status/status.html' with status=draft.reply_parent no_interact=True %} + {% else %} +
+ {% include "snippets/status/header.html" with status=draft %} +
{% endif %} {% if not draft %}