summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-10-10 12:33:37 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-10-10 12:33:37 +0200
commit96ec1a652d9c09a9f41d88f7cb344b8302e1fd99 (patch)
tree8299394decd95e46b187e1244f4231a3a7e9f49a /templates
parent2a9ca113cf5b83d2cadc4814be24a4deeae22d6d (diff)
infoscreen: more fancy line support
Diffstat (limited to 'templates')
-rw-r--r--templates/infoscreen.html.ep14
1 files changed, 11 insertions, 3 deletions
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep
index bb6c565..fac78d4 100644
--- a/templates/infoscreen.html.ep
+++ b/templates/infoscreen.html.ep
@@ -29,14 +29,22 @@
% if ($departure->can('type')) {
% given ($departure->type) {
% when ($_ =~ m{ (?: enbahn $ ) | Tram | STR }ix) { $linetype = 'tram' }
-% when ('S-Bahn') { $linetype = 'sbahn' }
+% when ([qw[S-Bahn S]]) { $linetype = 'sbahn' }
% when ([qw[NE Niederflurbus SB Bus]]) { $linetype = 'bus' }
-% when ('U-Bahn') { $linetype = 'ubahn' }
+% when ([qw[U-Bahn U]]) { $linetype = 'ubahn' }
% }
% }
<li>
<span class="line <%= $linetype %>">
- %= $departure->line
+% if ($departure->can('line_no')) {
+% if ($linetype eq 'sbahn') {
+ S
+% }
+%= $departure->line_no
+% }
+% else {
+%= $departure->line
+% }
</span> <!-- line -->
<span class="moreinfo">
<div class="mheader">