diff options
author | Julien Dessaux | 2021-04-05 20:58:28 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-04-05 20:58:28 +0200 |
commit | 309d17b921f75b16298cfe88ada9ba89bf646ac5 (patch) | |
tree | dd65823647fbb0769a851f34948af131b097fc60 /internal/webui/html/index.html | |
parent | Fixed scope of test helpers in navitia_api_client package (diff) | |
download | trains-309d17b921f75b16298cfe88ada9ba89bf646ac5.tar.gz trains-309d17b921f75b16298cfe88ada9ba89bf646ac5.tar.bz2 trains-309d17b921f75b16298cfe88ada9ba89bf646ac5.zip |
Added basic webui to show results
Diffstat (limited to '')
-rw-r--r-- | internal/webui/html/index.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/internal/webui/html/index.html b/internal/webui/html/index.html new file mode 100644 index 0000000..a0a7d82 --- /dev/null +++ b/internal/webui/html/index.html @@ -0,0 +1,24 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>{{ .Title }}</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + + <link rel="icon" type="image/png" href="/static/favicon.png" /> + <link rel="stylesheet" href="/static/main.css"> + </head> + <body> + <h3>Horaires des prochains trains à Crépieux la Pape</h3> + <table> + <thead> + <tr><th>Arrivée en gare</th><th>Direction</th></tr> + </thead> + <tbody> + {{ range .Departures }} + <tr{{ if .Odd }} style="color:#111111;"{{ end }}><td>{{ .Arrival }}</td><td>{{ .DisplayName }}</td></tr> + {{ end }} + </tbody> + </table> + </body> +</html> |