summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-01-18 18:13:35 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-01-18 18:13:35 +0100
commite9373246175a0853fb56aff4a740f4db7dda7215 (patch)
tree0cde9fbc35979d15bb9636d50004f28782c29b24 /templates
parenteb1ed1bb48d54077930d015144636f90b2fc9c15 (diff)
landing page: show past stops if geolocation is unavailable
Diffstat (limited to 'templates')
-rw-r--r--templates/landingpage.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep
index 03d0eca..a4bf10c 100644
--- a/templates/landingpage.html.ep
+++ b/templates/landingpage.html.ep
@@ -49,7 +49,7 @@
<div class="card-content">
<span class="card-title">Hallo, <%= current_user->{name} %>!</span>
<p>Du bist gerade nicht eingecheckt.</p>
- <div class="geolocation">
+ <div class="geolocation" data-recent="<%= join('|', map { $_->{eva} . ';' . $_->{name} } @{stash('recent_targets') // []} ) %>">
<button class="btn waves-effect waves-light btn-flat">Stationen in der Umgebung abfragen</button>
</div>
%= form_for 'list_departures' => begin