summaryrefslogtreecommitdiff
path: root/templates/clean.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-05-11 15:04:44 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-05-11 15:04:44 +0200
commit4083d90609e565e9b34ed11e873526d6b4adb2ec (patch)
tree5c982ada6e7542e6ae335174bcf7bbe1fbf5c1dc /templates/clean.html.ep
parent4c0699e1ebeb4998a1c9204cb8ea2b20787c80fc (diff)
clean template: Use normal (non-bold) fonts for destination and train number
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">