summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-03-27 16:38:34 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-03-27 16:38:34 +0200
commit0f65ad29ac1525e64853881a7901a5f081b88ae9 (patch)
tree9448a2f0f57aec9315b0929462f13d082adba17e
parentafb9ece81952570459c4757bf27693f71e0e3762 (diff)
Add special color for Fernverkehr (unusable with regional tickets)
-rw-r--r--public/static/default.css11
-rw-r--r--templates/clean.html.ep5
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
@@ -25,6 +25,11 @@
% 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';
+% }
<div class="line <%= $linetype %>">
% if ($departure->{train_type} and $departure->{train_no}) {
%= $departure->{train_type}