From b36ee851d518a479a1c87c71bbc07f50b67c4c47 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Sun, 12 Nov 2023 12:41:03 +0200
Subject: [PATCH 1/1] Formatting tweaks on Subspaces page
subspace.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/subspace.py b/subspace.py
index 85c2e17..d82140b 100644
--- a/subspace.py
+++ b/subspace.py
@@ -61,8 +61,8 @@ def make_subspaces_page(session):
if user.role != User.LIMITED and (
session.bubble.user_subspaces or user.role == User.ADMIN):
page += f'=> /new-subspace ๐ New subspace\n'
# View mode is determined by the query string.
if arg in LABELS:
@@ -109,10 +109,10 @@ def make_subspaces_page(session):
# Basic alphabetical index.
page += f'## {LABELS[view_mode]}\n'
if view_mode == 'chrono':
page += 'Subspaces with recent activity are listed first.\n\n'
page += '\nSubspaces with recent activity are listed first.\n'
subs = sorted(subs, key=lambda s: s.ts_active, reverse=True)
for sub in subs:
page += sub_link(sub)
page += '\n' + sub_link(sub)
if sub.num_posts > 0:
kind = 'issue' if sub.flags & Subspace.ISSUE_TRACKER else 'post'
page += f"{sub.num_posts} {kind}{plural_s(sub.num_posts)} ยท {ago_text(sub.ts_active, tz=session.tz)}\n"
--
2.25.1
text/plain
This content has been proxied by September (3851b).