summaryrefslogtreecommitdiff
path: root/templates/app.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-01-04 00:02:31 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-01-04 00:02:31 +0100
commit7e4727af603cdd8bbb3746842a9603054ddca7cb (patch)
tree352cfbbc06585a40b84b666c3fee65ec3c01e4db /templates/app.html.ep
parentea650826ceb481dd2c8495953bd9fa28efbb1b89 (diff)
Add color coding for trains not accepting DB tickets
Diffstat (limited to 'templates/app.html.ep')
-rw-r--r--templates/app.html.ep8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/app.html.ep b/templates/app.html.ep
index 80e17d2..8c7d079 100644
--- a/templates/app.html.ep
+++ b/templates/app.html.ep
@@ -33,9 +33,15 @@
% elsif ( $departure->{train_type} eq 'IC'
% or $departure->{train_type} eq 'ICE'
% or $departure->{train_type} eq 'EC'
-% or $departure->{train_type} eq 'THA' ) {
+% or $departure->{train_type} eq 'EN') {
% $linetype = 'fern';
% }
+% elsif ( $departure->{train_type} eq 'THA'
+% or $departure->{train_type} eq 'FLX'
+% or $departure->{train_type} eq 'NJ') {
+% $linetype = 'ext';
+% }
+%
<div class="line <%= $linetype %>">
% if ($departure->{train_type} and $departure->{train_no}) {
%= $departure->{train_type}