chore(webui): redesign the settings page and fix a few display elements
This commit is contained in:
parent
59b3d49a4f
commit
f604bb98ab
6 changed files with 24 additions and 32 deletions
|
@ -41,12 +41,10 @@ func handleSettingsPOST(db *database.DB) http.Handler {
|
|||
errorResponse(w, r, http.StatusInternalServerError, err)
|
||||
return
|
||||
}
|
||||
page := makePage(r, &Page{Title: "Settings", Section: "settings"})
|
||||
page.LightMode = settings.LightMode
|
||||
render(w, settingsTemplates, http.StatusOK, SettingsPage{
|
||||
Page: &Page{
|
||||
LightMode: settings.LightMode,
|
||||
Title: "Settings",
|
||||
Section: "settings",
|
||||
},
|
||||
Page: page,
|
||||
Settings: &settings,
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue