From 6ed6a1778f4f9710edca3908b38ead7204362552 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 22 Oct 2014 22:19:12 +0200 Subject: clean template: show S-Bahn lines with a special color and background MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (Öffi-style) --- templates/clean.html.ep | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'templates/clean.html.ep') 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++;
  • - +% my $linetype = q{}; +% if ( $departure->{train} =~ m{ ^ S \s? \d{1,2} $ }x ) { +% $linetype = 'sbahn'; +% } + %= $departure->{train} % if ($departure->{moreinfo} and @{$departure->{moreinfo}}) { -- cgit v1.2.3