aboutsummaryrefslogtreecommitdiff
path: root/internal/webui/html
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/html
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 'internal/webui/html')
-rw-r--r--internal/webui/html/base.html2
-rw-r--r--internal/webui/html/login.html1
-rw-r--r--internal/webui/html/root.html1
3 files changed, 3 insertions, 1 deletions
diff --git a/internal/webui/html/base.html b/internal/webui/html/base.html
index 7522e94..28f131b 100644
--- a/internal/webui/html/base.html
+++ b/internal/webui/html/base.html
@@ -3,7 +3,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
- <title>{{ .Title }}</title>
+ <title>{{ template "title" . }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="/static/favicon.png" />
diff --git a/internal/webui/html/login.html b/internal/webui/html/login.html
index 33e9f02..9aaa3cf 100644
--- a/internal/webui/html/login.html
+++ b/internal/webui/html/login.html
@@ -1,3 +1,4 @@
+{{ define "title"}}Login{{ end }}
{{ template "base" . }}
{{ define "main" }}
diff --git a/internal/webui/html/root.html b/internal/webui/html/root.html
index a293ee7..97441c8 100644
--- a/internal/webui/html/root.html
+++ b/internal/webui/html/root.html
@@ -1,3 +1,4 @@
+{{ define "title"}}Horaires des prochains trains à Crépieux la Pape{{ end }}
{{ template "base" . }}
{{ define "main" }}