Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/webui/embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ var pageTemplates = []string{
"templates/webhook_detail.html",
"templates/admin.html",
"templates/onboard/index.html",
"templates/proposals/list.html",
"templates/proposals/detail.html",
}

// standalonePageTemplates is the list of templates that do NOT extend
Expand All @@ -62,6 +60,8 @@ var pageTemplates = []string{
var standalonePageTemplates = []string{
"templates/work/board.html",
"templates/work/detail.html",
"templates/proposals/list.html",
"templates/proposals/detail.html",
}

// parseTemplates parses all embedded HTML templates using a clone-per-page
Expand Down
4 changes: 2 additions & 2 deletions internal/webui/handlers_proposals.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (s *Server) handleProposalsPage(w http.ResponseWriter, r *http.Request) {
http.Error(w, "template missing: proposals/list.html", http.StatusInternalServerError)
return
}
if err := tmpl.ExecuteTemplate(w, "templates/layout.html", view); err != nil {
if err := tmpl.Execute(w, view); err != nil {
http.Error(w, "template error: "+err.Error(), http.StatusInternalServerError)
}
}
Expand Down Expand Up @@ -166,7 +166,7 @@ func (s *Server) handleProposalDetailPage(w http.ResponseWriter, r *http.Request
http.Error(w, "template missing: proposals/detail.html", http.StatusInternalServerError)
return
}
if err := tmpl.ExecuteTemplate(w, "templates/layout.html", view); err != nil {
if err := tmpl.Execute(w, view); err != nil {
http.Error(w, "template error: "+err.Error(), http.StatusInternalServerError)
}
}
Expand Down
Loading
Loading