From 11f3bc62c0543adb71a36d1815341ec490d37338 Mon Sep 17 00:00:00 2001 From: blankie Date: Sun, 26 Jul 2026 17:25:19 -0700 Subject: [PATCH] fixed inline rename --- src/tinyweb/handlers/subscriptions.py | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/src/tinyweb/handlers/subscriptions.py b/src/tinyweb/handlers/subscriptions.py index 9528837..393157a 100644 --- a/src/tinyweb/handlers/subscriptions.py +++ b/src/tinyweb/handlers/subscriptions.py @@ -152,6 +152,11 @@ def handle_subscriptions(msg=""): _sync_threads.pop(sub_id, None) _sync_starts.pop(sub_id, None) + edit_script = """""" + cards = "" for s in subs: sub_id = s["id"] @@ -181,13 +186,21 @@ def handle_subscriptions(msg=""): cards += ( f'
' - f'
{esc(s["nickname"] or s["name"] or "unknown")}
' - f'
{esc(s["dest_hash"])}
' - f'
' + f'
' + f'{esc(s["nickname"] or s["name"] or "unknown")}' + f'' + f'rename' + f'
' + f'
{esc(s["dest_hash"])}
' f'
last sync: {esc(last)}
' f'{status_html}' f'
' @@ -222,6 +235,7 @@ def handle_subscriptions(msg=""): f'' f'

or subscribe to an instance

' f'

{msg}

' + f'{edit_script}' f'
{listing}' f'
back', head_html=head_html,