diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-12-19 17:21:27 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-12-19 17:21:27 +0100 |
commit | fbc1b2194c7c84707edf9e01895f2f449123b272 (patch) | |
tree | cd5ad1944eb92949950c40dbd062e28772f704e6 /templates | |
parent | 956f17ff436082dad7155f1c2d5aa743b90341be (diff) |
show expected train type in train view
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_train_details.html.ep | 4 |
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> % } |