summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-10-07 11:35:47 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-10-07 11:35:47 +0200
commit6fd985ae7ef9800d5837af942d74ad6e7562c75d (patch)
tree026e9757dccd327279e1f9f71e601dd03a28d15c /templates
parentd95cb9d06a346e16e8cc2a63b9b0e1279a19a251 (diff)
show close stations via geolocation
Diffstat (limited to 'templates')
-rw-r--r--templates/landingpage.html.ep4
-rw-r--r--templates/layouts/default.html.ep3
2 files changed, 7 insertions, 0 deletions
diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep
index e25cd22..c7a28bd 100644
--- a/templates/landingpage.html.ep
+++ b/templates/landingpage.html.ep
@@ -25,6 +25,10 @@
<div class="card-content white-text">
<span class="card-title">Hallo, <%= $self->get_user_name %>!</span>
<p>Du bist gerade nicht eingecheckt.</p>
+ <p class="geolocationhint">Stationen in der Umgebung:</p>
+ <div class="geolocation">
+ <div class="progress"><div class="indeterminate"></div></div>
+ </div>
</div>
</div>
% }
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index c3ddac7..b5714c6 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -10,6 +10,9 @@
%= javascript '/static/js/jquery-2.2.4.min.js'
%= javascript '/static/js/materialize.min.js'
%= javascript '/static/js/travelynx-actions.js'
+ % if (stash('with_geolocation')) {
+ %= javascript '/static/js/geolocation.js'
+ % }
</head>
<body>