summaryrefslogtreecommitdiff
path: root/templates/app.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-12-21 01:05:43 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-12-21 01:05:43 +0100
commit69568899ff68292fb4855bf5906fb3f56c72d9a7 (patch)
tree2c21032875f7575ddd439e2bf8e2a94e46fb48cc /templates/app.html.ep
parenta668150460042c299aa33fdc411b93313ef5a7bc (diff)
set S-Bahn type for non-DB S-Bahn trains as well
Diffstat (limited to 'templates/app.html.ep')
-rw-r--r--templates/app.html.ep3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/app.html.ep b/templates/app.html.ep
index a769bd5..b35ca59 100644
--- a/templates/app.html.ep
+++ b/templates/app.html.ep
@@ -51,6 +51,9 @@
% or $departure->{train_type} eq 'NJ') {
% $linetype = 'ext';
% }
+% elsif ( $departure->{train_line} and $departure->{train_line} =~ m{^S\d} ) {
+% $linetype = 'sbahn';
+% }
<li
data-train="<%= ($departure->{train_type} // q{}) %> <%= ($departure->{train_no} // $departure->{train} // q{}) %>"
data-line="<%= $departure->{train_type} %> <%= $departure->{train_line} // $departure->{train_no} %>"