summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-04-03 12:35:24 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-04-03 12:35:24 +0200
commit64e0ee57683389587f5ff9dc282318a85014ccd5 (patch)
treea194149e429d3313a3d497041dc88a03d2797577
parentaa014a8a0b492b134c0892d018381eb7ca5423fa (diff)
hafas departures: use /s/:station rather than HAFAS station for prev/next links2.6.4
-rw-r--r--templates/departures.html.ep4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/departures.html.ep b/templates/departures.html.ep
index a2c3b26..6aac482 100644
--- a/templates/departures.html.ep
+++ b/templates/departures.html.ep
@@ -93,7 +93,7 @@
<div class="row">
<div class="col s4 center-align">
% if ($hafas) {
- <a class="btn-small" href="<%= url_for('sstation', station => stash('station'))->query({hafas => 1, timestamp => $datetime->clone->subtract(hours => 1)->epoch}) %>"><i class="material-icons left" aria-hidden="true">chevron_left</i><span class="hide-on-small-only">früher</span></a>
+ <a class="btn-small" href="<%= url_for('sstation', station => param('station'))->query({hafas => 1, timestamp => $datetime->clone->subtract(hours => 1)->epoch}) %>"><i class="material-icons left" aria-hidden="true">chevron_left</i><span class="hide-on-small-only">früher</span></a>
% }
</div>
<div class="col s4 center-align">
@@ -103,7 +103,7 @@
</div>
<div class="col s4 center-align">
% if ($hafas) {
- <a class="btn-small" href="<%= url_for('sstation', station => stash('station'))->query({hafas => 1, timestamp => $datetime->clone->add(hours => 1)->epoch}) %>"><span class="hide-on-small-only">später</span><i class="material-icons right" aria-hidden="true">chevron_right</i></a>
+ <a class="btn-small" href="<%= url_for('sstation', station => param('station'))->query({hafas => 1, timestamp => $datetime->clone->add(hours => 1)->epoch}) %>"><span class="hide-on-small-only">später</span><i class="material-icons right" aria-hidden="true">chevron_right</i></a>
% }
</div>
</div>