From aff4790d22728d89e7e2dac8af262c92087b5b39 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sat, 11 Sep 2021 12:27:59 +0200 Subject: Piece evry last week changes together in a big rewrite of the webui --- internal/webui/html/root.html | 17 +++++------------ internal/webui/html/specificStop.html | 16 ++++++++++++++++ internal/webui/html/stop.html | 11 +++++++++++ 3 files changed, 32 insertions(+), 12 deletions(-) create mode 100644 internal/webui/html/specificStop.html create mode 100644 internal/webui/html/stop.html (limited to 'internal/webui/html') diff --git a/internal/webui/html/root.html b/internal/webui/html/root.html index 97441c8..6b7bd6e 100644 --- a/internal/webui/html/root.html +++ b/internal/webui/html/root.html @@ -1,16 +1,9 @@ -{{ define "title"}}Horaires des prochains trains à Crépieux la Pape{{ end }} +{{ define "title"}}Trains!{{ end }} {{ template "base" . }} {{ define "main" }} -

Horaires des prochains trains à Crépieux la Pape

- - - - - - {{ range .Departures }} - - {{ end }} - -
Arrivée en gareDirection
{{ .Arrival }}{{ .DisplayName }}
+

Menu

+ {{ end }} diff --git a/internal/webui/html/specificStop.html b/internal/webui/html/specificStop.html new file mode 100644 index 0000000..5916927 --- /dev/null +++ b/internal/webui/html/specificStop.html @@ -0,0 +1,16 @@ +{{ define "title"}}Horaires des prochains trains à {{ .Stop }}{{ end }} +{{ template "base" . }} + +{{ define "main" }} +

Horaires des prochains trains à {{ .Stop }}

+ + + + + + {{ range $i, $elt := .Departures }} + + {{ end }} + +
Arrivée en gareDirection
{{ .Arrival }}{{ .Direction }}
+{{ end }} diff --git a/internal/webui/html/stop.html b/internal/webui/html/stop.html new file mode 100644 index 0000000..33a94c6 --- /dev/null +++ b/internal/webui/html/stop.html @@ -0,0 +1,11 @@ +{{ define "title"}}Choisir une gare{{ end }} +{{ template "base" . }} + +{{ define "main" }} +

Choisir une gare

+ +{{ end }} -- cgit v1.2.3