summaryrefslogtreecommitdiffstats
path: root/templates/activities
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-24 15:17:32 -0700
committerAndrew Godwin2022-11-24 15:17:32 -0700
commitec634f2ad382f659eedae884154d0db9a2a006b2 (patch)
tree2a33846e24ab6669e27d3e54b81127a720157479 /templates/activities
parent4c00e11d63c082b57c1aec8f7c3e58820b56674a (diff)
downloadtakahe-ec634f2ad382f659eedae884154d0db9a2a006b2.tar.gz
takahe-ec634f2ad382f659eedae884154d0db9a2a006b2.tar.bz2
takahe-ec634f2ad382f659eedae884154d0db9a2a006b2.zip
Initial reply-to feature
Diffstat (limited to 'templates/activities')
-rw-r--r--templates/activities/_post.html1
-rw-r--r--templates/activities/_reply.html4
-rw-r--r--templates/activities/compose.html4
3 files changed, 9 insertions, 0 deletions
diff --git a/templates/activities/_post.html b/templates/activities/_post.html
index 11e4494..dbdc99a 100644
--- a/templates/activities/_post.html
+++ b/templates/activities/_post.html
@@ -27,6 +27,7 @@
{% if request.identity %}
<div class="actions">
+ {% include "activities/_reply.html" %}
{% include "activities/_like.html" %}
{% include "activities/_boost.html" %}
</div>
diff --git a/templates/activities/_reply.html b/templates/activities/_reply.html
new file mode 100644
index 0000000..a6cc81a
--- /dev/null
+++ b/templates/activities/_reply.html
@@ -0,0 +1,4 @@
+
+<a title="Reply" href="{{ post.urls.action_reply }}">
+ <i class="fa-solid fa-reply"></i>
+</a>
diff --git a/templates/activities/compose.html b/templates/activities/compose.html
index 55b4eb3..9d02988 100644
--- a/templates/activities/compose.html
+++ b/templates/activities/compose.html
@@ -7,6 +7,10 @@
{% csrf_token %}
<fieldset>
<legend>Content</legend>
+ {% if reply_to %}
+ <p>Replying to <a href="{{ reply_to.urls.view }}">{{ reply_to }}</a></p>
+ {% endif %}
+ {{ form.reply_to }}
{% include "forms/_field.html" with field=form.text %}
{% include "forms/_field.html" with field=form.content_warning %}
{% include "forms/_field.html" with field=form.visibility %}