mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-14 18:45:06 +00:00
Add settings restore link
This commit is contained in:
@@ -30,10 +30,10 @@ html
|
||||
head
|
||||
title Settings | Bibliogram
|
||||
include includes/head
|
||||
script(src=getStaticURL("html", "/static/js/settings_message.js") type="module")
|
||||
body.settings-page
|
||||
if status && message
|
||||
.status-notice(class=status)= message
|
||||
script(src=getStaticURL("html", "/static/js/settings_message.js") type="module")
|
||||
main.settings
|
||||
form(action=returnAction method="post" enctype="application/x-www-form-urlencoded")
|
||||
input(type="hidden" name="csrf" value=csrf)
|
||||
@@ -129,6 +129,9 @@ html
|
||||
label.pill(for=thisID tabindex=0 onkeypress=`[" ", "Enter"].includes(event.key) && this.click()`) Label
|
||||
span.fake-checkbox
|
||||
|
||||
if token
|
||||
p You can restore and sync saved settings by #[a(href=`/applysettings/${token}`)#restore-link bookmarking this link.]
|
||||
|
||||
.action-container
|
||||
span.home-link-container: a(href=returnURL).home-link ← Return
|
||||
button(type="submit" formaction=stayAction).save-button Save
|
||||
|
||||
Reference in New Issue
Block a user