diff options
Diffstat (limited to 'templates/departures.html.ep')
-rw-r--r-- | templates/departures.html.ep | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/departures.html.ep b/templates/departures.html.ep index c165d71..3b63016 100644 --- a/templates/departures.html.ep +++ b/templates/departures.html.ep @@ -6,6 +6,26 @@ % } </div> </div> +% if ($api_link) { + <div class="row"> + % if (param('hafas')) { + <div class="col s12 center-align"> + <a href="<%= $api_link %>">Schienenverkehr</a> + </div> + <div class="col s12 center-align"> + → Nahverkehr ← + </div> + % } + % else { + <div class="col s12 center-align"> + → Schienenverkehr ← + </div> + <div class="col s12 center-align"> + <a href="<%= $api_link %>">Nahverkehr</a> + </div> + % } + </div> +% } % my $have_connections = 0; % if ($user_status->{checked_in}) { <div class="row"> |