From 12823468d3ea3d54e38719078c64ae79af3e89a2 Mon Sep 17 00:00:00 2001 From: William Woodson Date: Sat, 20 Feb 2016 17:44:15 -0600 Subject: [PATCH] Fixed page titles for several routes --- controllers/route.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/controllers/route.go b/controllers/route.go index 8b5ccf5e..9abf90f8 100644 --- a/controllers/route.go +++ b/controllers/route.go @@ -274,7 +274,7 @@ func CampaignID(w http.ResponseWriter, r *http.Request) { Title string Flashes []interface{} Token string - }{Title: "Dashboard", User: ctx.Get(r, "user").(models.User), Token: nosurf.Token(r)} + }{Title: "Campaign Results", User: ctx.Get(r, "user").(models.User), Token: nosurf.Token(r)} getTemplate(w, "campaign_results").ExecuteTemplate(w, "base", params) } @@ -286,7 +286,7 @@ func Templates(w http.ResponseWriter, r *http.Request) { Title string Flashes []interface{} Token string - }{Title: "Dashboard", User: ctx.Get(r, "user").(models.User), Token: nosurf.Token(r)} + }{Title: "Email Templates", User: ctx.Get(r, "user").(models.User), Token: nosurf.Token(r)} getTemplate(w, "templates").ExecuteTemplate(w, "base", params) } @@ -298,7 +298,7 @@ func Users(w http.ResponseWriter, r *http.Request) { Title string Flashes []interface{} Token string - }{Title: "Dashboard", User: ctx.Get(r, "user").(models.User), Token: nosurf.Token(r)} + }{Title: "Users & Groups", User: ctx.Get(r, "user").(models.User), Token: nosurf.Token(r)} getTemplate(w, "users").ExecuteTemplate(w, "base", params) } @@ -310,7 +310,7 @@ func LandingPages(w http.ResponseWriter, r *http.Request) { Title string Flashes []interface{} Token string - }{Title: "Dashboard", User: ctx.Get(r, "user").(models.User), Token: nosurf.Token(r)} + }{Title: "Landing Pages", User: ctx.Get(r, "user").(models.User), Token: nosurf.Token(r)} getTemplate(w, "landing_pages").ExecuteTemplate(w, "base", params) } @@ -322,7 +322,7 @@ func SendingProfiles(w http.ResponseWriter, r *http.Request) { Title string Flashes []interface{} Token string - }{Title: "Dashboard", User: ctx.Get(r, "user").(models.User), Token: nosurf.Token(r)} + }{Title: "Sending Profiles", User: ctx.Get(r, "user").(models.User), Token: nosurf.Token(r)} getTemplate(w, "sending_profiles").ExecuteTemplate(w, "base", params) } @@ -335,7 +335,7 @@ func Settings(w http.ResponseWriter, r *http.Request) { Title string Flashes []interface{} Token string - }{Title: "Dashboard", User: ctx.Get(r, "user").(models.User), Token: nosurf.Token(r)} + }{Title: "Settings", User: ctx.Get(r, "user").(models.User), Token: nosurf.Token(r)} getTemplate(w, "settings").ExecuteTemplate(w, "base", params) case r.Method == "POST": err := auth.ChangePassword(r)