From eef01c0f3eba6f498eb9d9c2097de4c1a4836fb1 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 27 Mar 2021 08:02:50 +0100 Subject: infoscreen: experimental display of occupancy data --- templates/infoscreen.html.ep | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 @@ -180,6 +180,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') { + ●●● +% } % } -- cgit v1.2.3