From 64c9d94476e29724243c6a6488ba4ce41ce24114 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 10 Nov 2022 18:38:05 -0800 Subject: pds: basic/partial post thread implementation --- adenosine-pds/templates/thread.html | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'adenosine-pds/templates/thread.html') 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()) %} +
---
+{% endif %} + +{% call macro::feed_item(post) %} + +{% if post.replies.is_some() && post.replies.as_ref().unwrap().len() > 0 %} +
--- replies ---
+ {% for item in post.replies.as_ref().unwrap() %} + {% call macro::feed_item(item) %} + {% endfor %} +{% endif %} {% endblock %} -- cgit v1.2.3