summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-21 19:31:47 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-21 19:31:47 +0200
commit4c7b3117cd55b3cae67277a4280e2412d2e71ff8 (patch)
tree7c4ecf0a519076ab3619f139e5c532e90653eac7
parente01b8c3c741355e2a2b2a177fbff06868e583144 (diff)
departures: always allow backend switch; prefer name rather than ID
-rw-r--r--templates/departures.html.ep8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/departures.html.ep b/templates/departures.html.ep
index 4843d81..6b16ce7 100644
--- a/templates/departures.html.ep
+++ b/templates/departures.html.ep
@@ -8,16 +8,16 @@
% }
</div>
<div class="col s4 center-align">
- % my $self_link = url_for('sstation', station => param('station'));
+ % my $self_link = url_for('sstation', station => $station // param('station'));
% if (param('hafas')) {
- <span class="btn-small disabled"><i class="material-icons left" aria-hidden="true">directions</i> <%= param('hafas') %></span>
+ <a href="/account/select_backend?redirect_to=<%= $self_link %>" class="btn-small btn-flat"><i class="material-icons left" aria-hidden="true">directions</i><%= param('hafas') %></a>
% }
% else {
% if ($user->{backend_id}) {
- <a href="/account/select_backend?redirect_to=<%= $self_link %>" class="btn-small"><i class="material-icons left" aria-hidden="true">directions</i><%= $user->{backend_name} %></a>
+ <a href="/account/select_backend?redirect_to=<%= $self_link %>" class="btn-small btn-flat"><i class="material-icons left" aria-hidden="true">directions</i><%= $user->{backend_name} %></a>
% }
% else {
- <a href="/account/select_backend?redirect_to=<%= $self_link %>" class="btn-small"><i class="material-icons left" aria-hidden="true">train</i>DB</a>
+ <a href="/account/select_backend?redirect_to=<%= $self_link %>" class="btn-small btn-flat"><i class="material-icons left" aria-hidden="true">train</i>DB</a>
% }
% }
</div>