mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
Go back to previous page when saving settings
This commit is contained in:
parent
ed327bac24
commit
3f7ccb5525
2 changed files with 10 additions and 3 deletions
|
|
@ -51,10 +51,12 @@ macro renderPrefs*(): untyped =
|
|||
|
||||
result[2].add stmt
|
||||
|
||||
proc renderPreferences*(prefs: Prefs): VNode =
|
||||
proc renderPreferences*(prefs: Prefs; path: string): VNode =
|
||||
buildHtml(tdiv(class="preferences-container")):
|
||||
fieldset(class="preferences"):
|
||||
form(`method`="post", action="saveprefs"):
|
||||
verbatim "<input name=\"referer\" style=\"display: none\" value=\"$1\"/>" % path
|
||||
|
||||
renderPrefs()
|
||||
|
||||
button(`type`="submit", class="pref-submit"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue