remove demo pages, rename themes, add Content-Length header
This commit is contained in:
parent
0f614c88f8
commit
66a9fafd26
10 changed files with 1652 additions and 2370 deletions
|
|
@ -162,7 +162,7 @@ def handle_subscriptions(msg=""):
|
|||
sync_btn = '<button disabled>syncing...</button>'
|
||||
else:
|
||||
sync_btn = (
|
||||
f'<form method="post" action="/subscriptions/sync/{sub_id}" style="display:inline">'
|
||||
f'<form method="post" action="/subscriptions/sync/{sub_id}" style="display:inline-block;margin:0">'
|
||||
f'{_csrf_field()}<button>sync now</button></form>'
|
||||
)
|
||||
|
||||
|
|
@ -173,18 +173,22 @@ def handle_subscriptions(msg=""):
|
|||
f'<div style="margin-top:0.4rem;font-size:0.85rem;color:#606060">last sync: {esc(last)}</div>'
|
||||
f'{status_html}'
|
||||
f'<div style="display:flex;gap:0.5rem;align-items:center;flex-wrap:wrap;margin-top:0.7rem">'
|
||||
f'<a href="/subscriptions/browse/{sub_id}">browse</a>'
|
||||
f'<a href="/subscriptions/browse/{sub_id}" style="display:inline-flex;align-items:center;padding:0.3em 0">browse</a>'
|
||||
f'{sync_btn}'
|
||||
f'<form method="post" action="/subscriptions/autosync/{sub_id}" style="display:inline">'
|
||||
f'<form method="post" action="/subscriptions/autosync/{sub_id}" style="display:inline-block;margin:0">'
|
||||
f'{_csrf_field()}<button>auto-sync: {auto_label}</button></form>'
|
||||
f'<form method="post" action="/subscriptions/delete/{sub_id}" style="display:inline">'
|
||||
f'<form method="post" action="/subscriptions/delete/{sub_id}" style="display:inline-block;margin:0">'
|
||||
f'{_csrf_field()}<button>remove</button></form>'
|
||||
f'</div>'
|
||||
f'</div>'
|
||||
)
|
||||
any_syncing = any(
|
||||
s["id"] in _sync_threads and _sync_threads[s["id"]].is_alive()
|
||||
for s in subs
|
||||
)
|
||||
head_html = '<meta http-equiv="refresh" content="3">' if any_syncing else ""
|
||||
listing = ""
|
||||
if subs:
|
||||
any_syncing = any(sid in _sync_threads and _sync_threads[sid].is_alive() for sid in [s["id"] for s in subs])
|
||||
syncall_btn = '<button disabled>syncing...</button>' if any_syncing else '<button>sync all</button>'
|
||||
listing = (
|
||||
f'{cards}'
|
||||
|
|
@ -201,7 +205,8 @@ def handle_subscriptions(msg=""):
|
|||
f'<p><small>or <a href="/subscriptions/add">subscribe to an instance</a></small></p>'
|
||||
f'<p>{msg}</p>'
|
||||
f'<hr>{listing}'
|
||||
f'<br><a href="/">back</a>'
|
||||
f'<br><a href="/">back</a>',
|
||||
head_html=head_html,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue