diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-03-27 08:02:50 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-03-27 08:02:50 +0100 |
commit | eef01c0f3eba6f498eb9d9c2097de4c1a4836fb1 (patch) | |
tree | 9b5168e26fac44ef26688784c4cd9992643f5e0a | |
parent | 8180aad8438800056fb4baeedde12120f8bd90c6 (diff) |
infoscreen: experimental display of occupancy data1.5.0
-rw-r--r-- | templates/infoscreen.html.ep | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep index a2f92e6..62aa56c 100644 --- a/templates/infoscreen.html.ep +++ b/templates/infoscreen.html.ep @@ -181,6 +181,17 @@ % if ($departure->can('route_interesting') and $departure->route_interesting) { %= join(' - ', map { $_->can('name_suf') ? $_->name_suf : $_->name } ($departure->route_interesting)); % } +% elsif ($departure->can('occupancy') and $departure->occupancy) { +% if ($departure->occupancy eq 'MANY_SEATS') { + ●○○ +% } +% elsif ($departure->occupancy eq 'FEW_SEATS') { + ●●○ +% } +% elsif ($departure->occupancy eq 'STANDING_ONLY') { + <span style="color: red;">●●●</span> +% } +% } </span> <!-- route --> <span class="dest"> %= $departure->destination |