Add in context to dashboard for user to topbar loads all items & refactor for clarity of variable extraction.
This commit is contained in:
@@ -16,7 +16,8 @@ import (
|
||||
|
||||
func AdminTriggersHandler(db *sql.DB) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
context := templateHelpers.TemplateContext(w, r, models.TemplateData{})
|
||||
data := models.TemplateData{}
|
||||
context := templateHelpers.TemplateContext(w, r, data)
|
||||
|
||||
if flash := r.URL.Query().Get("flash"); flash != "" {
|
||||
context["Flash"] = flash
|
||||
|
||||
Reference in New Issue
Block a user