From 8f1236d962f5e4ac5fe40e064b609e497bba7962 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Sun, 14 May 2023 23:55:35 +0300
Subject: [PATCH 1/1] Improve post actions usability
If the reading order is top-down, add a Comment action at the bottom
of the thread.
feeds.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/feeds.py b/feeds.py
index 859a8bf..4e26462 100644
--- a/feeds.py
+++ b/feeds.py
@@ -218,7 +218,7 @@ def make_post_page(session, post):
outgoing_xrefs = db.get_issue_crossrefs(session.context,
outgoing_from_issueid=post.issueid)
n = len(comments)
dir_icon = '↑' if display_order_desc else '↓'
page += f'\n## {n} Comment{plural_s(n)} {dir_icon}'
@@ -281,6 +281,12 @@ def make_post_page(session, post):
rendered_comments.reverse()
for rendered in rendered_comments:
page += '\n' + rendered
len(comments) > 1 and not display_order_desc:
page += f'\n=> /comment/{post.id} 💬 Comment\n'
return page
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).