summaryrefslogtreecommitdiffstats
path: root/templates/activities
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-27 12:37:52 -0700
committerAndrew Godwin2022-11-27 12:37:52 -0700
commit3217569df583829d776bcbaf77b80696d3527005 (patch)
tree8924b33d8dc2e768c1b594d99c9128b698499449 /templates/activities
parent03ba96ff26943f11b0ae1a21a0bcc39309b05901 (diff)
downloadtakahe-3217569df583829d776bcbaf77b80696d3527005.tar.gz
takahe-3217569df583829d776bcbaf77b80696d3527005.tar.bz2
takahe-3217569df583829d776bcbaf77b80696d3527005.zip
Link to post pages and show replies there
Fixes #60, #59
Diffstat (limited to 'templates/activities')
-rw-r--r--templates/activities/_post.html2
-rw-r--r--templates/activities/post.html3
2 files changed, 4 insertions, 1 deletions
diff --git a/templates/activities/_post.html b/templates/activities/_post.html
index e294698..7402765 100644
--- a/templates/activities/_post.html
+++ b/templates/activities/_post.html
@@ -1,6 +1,6 @@
{% load static %}
{% load activity_tags %}
-<div class="post" data-takahe-id="{{ post.id }}">
+<div class="post {% if reply %}reply{% endif %}" data-takahe-id="{{ post.id }}" _="on click go url {{ post.urls.view }}">
<a href="{{ post.author.urls.view }}">
<img src="{{ post.author.local_icon_url }}" class="icon">
diff --git a/templates/activities/post.html b/templates/activities/post.html
index eee254f..d27790f 100644
--- a/templates/activities/post.html
+++ b/templates/activities/post.html
@@ -4,4 +4,7 @@
{% block content %}
{% include "activities/_post.html" %}
+ {% for reply in replies %}
+ {% include "activities/_post.html" with post=reply reply=True %}
+ {% endfor %}
{% endblock %}