From 0f65ad29ac1525e64853881a7901a5f081b88ae9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 27 Mar 2016 16:38:34 +0200 Subject: Add special color for Fernverkehr (unusable with regional tickets) --- public/static/default.css | 11 +++++++++-- templates/clean.html.ep | 5 +++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/public/static/default.css b/public/static/default.css index e833c07..a27962e 100644 --- a/public/static/default.css +++ b/public/static/default.css @@ -67,14 +67,21 @@ div.displayclean li .sbahn { -webkit-border-radius: 30px; -moz-border-radius: 30px; border-radius: 30px; - padding:3px 8px 2px 5px; + padding:3px 6px 2px 6px; } div.displayclean li .bahn { font-weight:bold; color:#FFFFFF; background-color:#666666; - padding:3px 8px 2px 5px; + padding:3px 5px 2px 5px; +} + +div.displayclean li .fern { + font-weight:bold; + color:#FFFFFF; + background-color:#993333; + padding:3px 5px 2px 5px; } div.displayclean li .route { diff --git a/templates/clean.html.ep b/templates/clean.html.ep index fb1463f..e8acb39 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -24,6 +24,11 @@ % my $linetype = 'bahn'; % if ( $departure->{train_type} eq 'S' ) { % $linetype = 'sbahn'; +% } +% elsif ( $departure->{train_type} eq 'IC' +% or $departure->{train_type} eq 'ICE' +% or $departure->{train_type} eq 'EC' ) { +% $linetype = 'fern'; % }
% if ($departure->{train_type} and $departure->{train_no}) { -- cgit v1.2.3