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,