summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/app.html.ep3
-rw-r--r--templates/infoscreen.html.ep3
2 files changed, 6 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} %>"
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep
index 8b1dd5c..85d0f8d 100644
--- a/templates/infoscreen.html.ep
+++ b/templates/infoscreen.html.ep
@@ -43,6 +43,9 @@
% or $departure->{train_type} eq 'NJ') {
% $linetype = 'ext';
% }
+% elsif ( $departure->{train_line} and $departure->{train_line} =~ m{^S\d} ) {
+% $linetype = 'sbahn';
+% }
<div class="line <%= $linetype %>">
% if ($departure->{train_type} and $departure->{train_no}) {
%= $departure->{train_type}