diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/clean.html.ep | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/templates/clean.html.ep b/templates/clean.html.ep index 9fcb3e7..053c8a8 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -18,11 +18,22 @@ % } <li> % my $linetype = q{}; -% if ( $departure->{train} =~ m{ ^ S \s? \d{1,2} $ }x ) { +% if ( $departure->{train_type} eq 'S' ) { % $linetype = 'sbahn'; % } <span class="line <%= $linetype %> <%= $extraclasses %>"> -%= $departure->{train} + % if ($departure->{train_type} and $departure->{train_no}) { +%= $departure->{train_type} +% } +% if ($departure->{train_line} ) { +%= $departure->{train_line} +% } +% elsif ($departure->{train_no}) { + <span class="trainno"><%= $departure->{train_no} %></span> +% } +% else { +%= $departure->{train} +% } </span> % if (@{$departure->{replaced_by}} or @{$departure->{replacement_for}}) { <span class="lineinfo"> |