fix go templating

This commit is contained in:
nahakubuilde
2025-08-25 09:44:14 +01:00
parent 17d8e8144b
commit 3e47f77ae9
12 changed files with 57 additions and 365 deletions

View File

@@ -14,7 +14,7 @@ import (
func (h *Handlers) SettingsPageHandler(c *gin.Context) {
notesTree, err := utils.BuildTreeStructure(h.config.NotesDir, h.config.NotesDirHideSidepane, h.config)
if err != nil {
c.HTML(http.StatusInternalServerError, "base.html", gin.H{
c.HTML(http.StatusInternalServerError, "error", gin.H{
"error": "Failed to build tree structure",
"app_name": h.config.AppName,
"message": err.Error(),
@@ -22,7 +22,7 @@ func (h *Handlers) SettingsPageHandler(c *gin.Context) {
return
}
c.HTML(http.StatusOK, "base.html", gin.H{
c.HTML(http.StatusOK, "settings", gin.H{
"app_name": h.config.AppName,
"notes_tree": notesTree,
"active_path": []string{},