diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-05-10 12:21:32 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-05-10 12:21:32 +0200 |
commit | 6c37dec8ed54a987acb6665fb6525a39fc6ca5da (patch) | |
tree | 290e831d119697ff4dd84468e256766c63fd57f2 /templates/layouts | |
parent | e09a676a9fac68feca73caffea792c4f0f8eef38 (diff) |
geolocation playground
Diffstat (limited to 'templates/layouts')
-rw-r--r-- | templates/layouts/default.html.ep | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index 9348852..f57ceab 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -20,6 +20,9 @@ %= javascript begin $(function () { $('marquee').marquee() }); % end + % if (stash('with_geolocation')) { + %= javascript '/static/geolocation.js' + % } </head> <body style="<%= (stash('hide_opts') ? 'margin: 0; padding: 0;' : q{}) %>"> @@ -59,6 +62,9 @@ on 2015-01-02 at 07:00 CET.</div> <p> Alle Angaben ohne Gewähr. </p> +<p class="geolink"> +<a href="<%= url_for('_auto')->to_abs->scheme('https') %>">Nahe gelegene Bahnhöfe suchen</a> +</p> % } |