aboutsummaryrefslogtreecommitdiffstats
path: root/adenosine-pds/templates/macro.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/macro.html
parentdb603c1fa18b19ed220e3ce18383ce1d15117bcc (diff)
downloadadenosine-64c9d94476e29724243c6a6488ba4ce41ce24114.tar.gz
adenosine-64c9d94476e29724243c6a6488ba4ce41ce24114.zip
pds: basic/partial post thread implementation
Diffstat (limited to 'adenosine-pds/templates/macro.html')
-rw-r--r--adenosine-pds/templates/macro.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/adenosine-pds/templates/macro.html b/adenosine-pds/templates/macro.html
index 1d38482..96fdfe3 100644
--- a/adenosine-pds/templates/macro.html
+++ b/adenosine-pds/templates/macro.html
@@ -2,10 +2,12 @@
{% macro feed_item(item) %}
<div class="feed_item">
+{# TODO: handle both thread items and feed items
{% if item.repostedBy.is_some() %}
{% if item.author.displayName.is_some() %}{{ item.author.displayName.as_ref().unwrap() }}{% endif %}
<b>@{{ item.author.handle }}</b>
{% endif %}
+#}
<div style="float: right;">
<a class="item_timestamp" href="/u/{{ item.author.handle }}/post/{{ item.uri|aturi_to_tid }}">
@@ -27,6 +29,7 @@
<br>
<span class="counts">
[<a href="#">{{ item.likeCount }} like</a> / <a href="#">{{ item.repostCount }} repost</a> / <a href="#">{{ item.replyCount }} reply</a>]
+ [<a href="{{ item.uri|aturi_to_path }}">inspect</a>]
</span>
{% if item.record.get("reply").is_some() %}