From 48ab05d28542ab3d9ddb654bc7f61e5dbe59a0fb Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Fri, 25 Nov 2022 16:34:45 -0700 Subject: Better reply UI on compose form --- templates/activities/_mini_post.html | 16 ++++++++++++++++ templates/activities/compose.html | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 templates/activities/_mini_post.html (limited to 'templates/activities') diff --git a/templates/activities/_mini_post.html b/templates/activities/_mini_post.html new file mode 100644 index 0000000..80ed213 --- /dev/null +++ b/templates/activities/_mini_post.html @@ -0,0 +1,16 @@ +{% load static %} +{% load activity_tags %} +
+ + + + + + + {{ post.author.name_or_handle }} + + +
+ {{ post.safe_content_local }} +
+
diff --git a/templates/activities/compose.html b/templates/activities/compose.html index 9d02988..1a02227 100644 --- a/templates/activities/compose.html +++ b/templates/activities/compose.html @@ -8,7 +8,8 @@
Content {% if reply_to %} -

Replying to {{ reply_to }}

+ + {% include "activities/_mini_post.html" with post=reply_to %} {% endif %} {{ form.reply_to }} {% include "forms/_field.html" with field=form.text %} -- cgit v1.2.3