summaryrefslogtreecommitdiffstats
path: root/adenosine-pds/templates/thread.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-11-10 18:38:05 -0800
committerBryan Newbold <bnewbold@robocracy.org>2022-11-10 18:38:05 -0800
commit64c9d94476e29724243c6a6488ba4ce41ce24114 (patch)
treee60929fd529cf81fd32318a98acfe795025878c1 /adenosine-pds/templates/thread.html
parentdb603c1fa18b19ed220e3ce18383ce1d15117bcc (diff)
downloadadenosine-64c9d94476e29724243c6a6488ba4ce41ce24114.tar.gz
adenosine-64c9d94476e29724243c6a6488ba4ce41ce24114.zip
pds: basic/partial post thread implementation
Diffstat (limited to 'adenosine-pds/templates/thread.html')
-rw-r--r--adenosine-pds/templates/thread.html16
1 files changed, 14 insertions, 2 deletions
diff --git a/adenosine-pds/templates/thread.html b/adenosine-pds/templates/thread.html
index e2e2e96..608c971 100644
--- a/adenosine-pds/templates/thread.html
+++ b/adenosine-pds/templates/thread.html
@@ -1,8 +1,20 @@
{% extends "base.html" %}
{% import "macro.html" as macro %}
-{% block post %}
+{% block main %}
-Post stuff will go here
+{% if post.parent.is_some() %}
+ {% call macro::feed_item(post.parent.as_ref().unwrap()) %}
+ <center><i>---</i></center>
+{% endif %}
+
+{% call macro::feed_item(post) %}
+
+{% if post.replies.is_some() && post.replies.as_ref().unwrap().len() > 0 %}
+ <center><i>--- replies ---</i></center>
+ {% for item in post.replies.as_ref().unwrap() %}
+ {% call macro::feed_item(item) %}
+ {% endfor %}
+{% endif %}
{% endblock %}