summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}