summaryrefslogtreecommitdiff
path: root/templates/clean.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/clean.html.ep')
-rw-r--r--templates/clean.html.ep15
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">