summaryrefslogtreecommitdiff
path: root/templates/infoscreen.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/infoscreen.html.ep')
-rw-r--r--templates/infoscreen.html.ep20
1 files changed, 16 insertions, 4 deletions
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep
index d634a93..62aa56c 100644
--- a/templates/infoscreen.html.ep
+++ b/templates/infoscreen.html.ep
@@ -8,12 +8,13 @@
<meta http-equiv="refresh" content="<%= $self->stash('refresh_interval') %>"/>
% }
- %= stylesheet '/static/infoscreen.css'
+ % my $av = 'v1'; # asset version
+ %= stylesheet "/static/${av}/css/infoscreen.css"
% if ($self->browser->mobile) {
- %= stylesheet '/static/mobile.css'
+ %= stylesheet "/static/${av}/css/mobile.css"
% }
- %= javascript '/static/jquery-2.1.1.min.js'
- %= javascript '/static/collapse.js'
+ %= javascript '/static/js/jquery-2.1.1.min.js'
+ %= javascript "/static/${av}/js/collapse.js"
</head>
<body>
@@ -180,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