summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-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>