summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-12-19 17:21:27 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-12-19 17:21:27 +0100
commitfbc1b2194c7c84707edf9e01895f2f449123b272 (patch)
treecd5ad1944eb92949950c40dbd062e28772f704e6 /templates
parent956f17ff436082dad7155f1c2d5aa743b90341be (diff)
show expected train type in train view
Diffstat (limited to 'templates')
-rw-r--r--templates/_train_details.html.ep4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index c1c7293..a1299ac 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -2,6 +2,10 @@
<div>
% if ($departure->{train_no} or $departure->{train_line}) {
<span class="train-line <%= $linetype %>"><%= $departure->{train_type} %>
+% if ($linetype eq 'fern' and $icetype and $icetype->[1]) {
+ <span class="trainsubtype" aria-hidden="true"><%= $icetype->[1] %></span>
+% }
+
<%= $departure->{train_line} // $departure->{train_no} %></span>
<span class="train-no"><%= $departure->{train_line} ? $departure->{train_no} : q{} %></span>
% }