diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-03-27 13:27:15 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-03-27 13:27:15 +0100 |
commit | aa9e55128f287b2e264df22997ec282b13f16fbe (patch) | |
tree | c7900bae91466f01fc280bf4f577460f8e281df9 /templates | |
parent | 67c7349906ce6c9c93cc45f23046853f3ad07fbc (diff) |
request EFA occupancy data (works for some VRR trains)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_train_details.html.ep | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 3f03869..6ce9e43 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -140,6 +140,12 @@ <%= $text %><span style="padding-right: 0.5em;">.</span> 1. <i class="material-icons" aria-hidden="true" style="padding-right: 0.5em; vertical-align: bottom;"><%= $icon1 %></i> 2. <i class="material-icons" aria-hidden="true" style="vertical-align: bottom;"><%= $icon2 %></i> </div> % } +% elsif (my $o = $departure->{occupancy}) { + <div class="verbose"> +% my ($text, $icon) = occupancy_icon($o); + <%= $text %><span style="padding-right: 0.5em;">.</span> <i class="material-icons" aria-hidden="true" style="padding-right: 0.5em; vertical-align: bottom;"><%= $icon %></i></i> + </div> +% } % if ($departure->{moreinfo} and @{$departure->{moreinfo}}) { Meldungen: |