aboutsummaryrefslogtreecommitdiff
path: root/internal/webui/root.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-09-10 17:40:57 +0200
committerJulien Dessaux2021-09-10 17:40:57 +0200
commit09fc5a7c1ba5e125657c4fabeff06394531eeb8d (patch)
tree19f8f0011cec4c480736f72bcdcfa5c68a541c58 /internal/webui/root.go
parentRefactoring of navitia mocking code for the webui (diff)
downloadtrains-09fc5a7c1ba5e125657c4fabeff06394531eeb8d.tar.gz
trains-09fc5a7c1ba5e125657c4fabeff06394531eeb8d.tar.bz2
trains-09fc5a7c1ba5e125657c4fabeff06394531eeb8d.zip
Changed the way html pages title is set
Diffstat (limited to '')
-rw-r--r--internal/webui/root.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/internal/webui/root.go b/internal/webui/root.go
index ab6fdcd..94f2169 100644
--- a/internal/webui/root.go
+++ b/internal/webui/root.go
@@ -15,7 +15,6 @@ var rootTemplate = template.Must(template.ParseFS(templatesFS, "html/base.html",
type Page struct {
User *model.User
Departures []model.Departure
- Title string
}
// The root handler of the webui
@@ -36,7 +35,6 @@ func rootHandler(e *env, w http.ResponseWriter, r *http.Request) error {
p := Page{
User: user,
Departures: departures,
- Title: "Horaires des prochains trains à Crépieux la Pape",
}
err = rootTemplate.ExecuteTemplate(w, "root.html", p)
if err != nil {