diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-08-15 08:37:14 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-08-15 08:37:14 +0200 |
commit | dfe820952f13ccd792130758303c338dc94d3bc9 (patch) | |
tree | e2be5abe46e037a5526f82a8e6f871755a8258e3 /templates/departures.html.ep | |
parent | 8f377d4ee5e279e14e26e14857081aa0c8f3184b (diff) |
station board: add iris / hafas links
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"> |