diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-10-22 22:19:12 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-10-22 22:19:37 +0200 |
commit | 6ed6a1778f4f9710edca3908b38ead7204362552 (patch) | |
tree | ea83fa6dc5a2b9595781c05d3d486eb1328fd55c /templates | |
parent | c9fb127d09f9aa33427fe7fab52c176e6fcd0324 (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.ep | 6 |
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}}) { |