diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-06-15 10:36:18 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-06-15 10:36:18 +0200 |
commit | 38f537bf597c492371fdffc243687290b2ebaafe (patch) | |
tree | e446b318a4297a5bba821a90f77ff809e63eedc7 /templates | |
parent | 84a3d282c13c26bd87c8fea3a5b5ffd52dd97887 (diff) |
Use hafas=DB rather than hafas=12.6.22
Diffstat (limited to 'templates')
-rw-r--r-- | templates/departures.html.ep | 4 | ||||
-rw-r--r-- | templates/disambiguation.html.ep | 2 | ||||
-rw-r--r-- | templates/use_external_links.html.ep | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/templates/departures.html.ep b/templates/departures.html.ep index 6aac482..9fd79e6 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 => 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> + <a class="btn-small" href="<%= url_for('sstation', station => param('station'))->query({hafas => $hafas, 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 => 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> + <a class="btn-small" href="<%= url_for('sstation', station => param('station'))->query({hafas => $hafas, 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> diff --git a/templates/disambiguation.html.ep b/templates/disambiguation.html.ep index 270aa99..9fc1e4c 100644 --- a/templates/disambiguation.html.ep +++ b/templates/disambiguation.html.ep @@ -13,7 +13,7 @@ <div class="col s12"> <ul class="suggestions"> % for my $suggestion (@{$suggestions // []}) { - <li><a href="<%= url_for('station' => $suggestion->{eva}) . (param('hafas') ? '?hafas=1' : q{}) %>"><%= $suggestion->{name} %></a></li> + <li><a href="<%= url_for('station' => $suggestion->{eva}) . (param('hafas') ? '?hafas=DB' : q{}) %>"><%= $suggestion->{name} %></a></li> % } </ul> </div> diff --git a/templates/use_external_links.html.ep b/templates/use_external_links.html.ep index d7bebd7..77dfd44 100644 --- a/templates/use_external_links.html.ep +++ b/templates/use_external_links.html.ep @@ -52,7 +52,7 @@ <div> <label> %= radio_button stationboard => '3' - <span><a href="https://dbf.finalrewind.org/?hafas=1">DBF</a> (Nahverkehr)</span> + <span><a href="https://dbf.finalrewind.org/?hafas=DB">DBF</a> (Nahverkehr)</span> </label> </div> </div> |