summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/geolocation.html.ep2
-rw-r--r--templates/layouts/default.html.ep6
2 files changed, 8 insertions, 0 deletions
diff --git a/templates/geolocation.html.ep b/templates/geolocation.html.ep
new file mode 100644
index 0000000..a0667db
--- /dev/null
+++ b/templates/geolocation.html.ep
@@ -0,0 +1,2 @@
+<div class="candidateheader">Nächstgelegene Stationen:</div>
+<div class="candidatelist"></div>
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>
% }