From 4083d90609e565e9b34ed11e873526d6b4adb2ec Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 11 May 2015 15:04:44 +0200 Subject: clean template: Use normal (non-bold) fonts for destination and train number --- templates/clean.html.ep | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'templates') 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 @@ % }
  • % my $linetype = q{}; -% if ( $departure->{train} =~ m{ ^ S \s? \d{1,2} $ }x ) { +% if ( $departure->{train_type} eq 'S' ) { % $linetype = 'sbahn'; % } -%= $departure->{train} + % if ($departure->{train_type} and $departure->{train_no}) { +%= $departure->{train_type} +% } +% if ($departure->{train_line} ) { +%= $departure->{train_line} +% } +% elsif ($departure->{train_no}) { + <%= $departure->{train_no} %> +% } +% else { +%= $departure->{train} +% } % if (@{$departure->{replaced_by}} or @{$departure->{replacement_for}}) { -- cgit v1.2.3