summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-10-22 22:19:12 +0200
committerDaniel Friesel <derf@finalrewind.org>2014-10-22 22:19:37 +0200
commit6ed6a1778f4f9710edca3908b38ead7204362552 (patch)
treeea83fa6dc5a2b9595781c05d3d486eb1328fd55c /templates
parentc9fb127d09f9aa33427fe7fab52c176e6fcd0324 (diff)
clean template: show S-Bahn lines with a special color and background
(Öffi-style)
Diffstat (limited to 'templates')
-rw-r--r--templates/clean.html.ep6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/clean.html.ep b/templates/clean.html.ep
index ae1167c..329d89d 100644
--- a/templates/clean.html.ep
+++ b/templates/clean.html.ep
@@ -7,7 +7,11 @@
% $i++;
<li>
-<span class="line">
+% my $linetype = q{};
+% if ( $departure->{train} =~ m{ ^ S \s? \d{1,2} $ }x ) {
+% $linetype = 'sbahn';
+% }
+<span class="line <%= $linetype %>">
%= $departure->{train}
</span>
% if ($departure->{moreinfo} and @{$departure->{moreinfo}}) {