fix go templating
This commit is contained in:
@@ -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{},
|
||||
|
||||
Reference in New Issue
Block a user