summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-10-31 16:37:32 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-10-31 16:37:32 +0100
commit2a55a8f7c6b5a8d3b8619b5014389d9ad2c99937 (patch)
tree6ddeb37aedc7723d9dfefd3d933730f2c3bd6c48 /templates
parent0ffd106e689f7accd78c6f401f7a56d83bd75a97 (diff)
train details: show operator and additional HIM messages
Diffstat (limited to 'templates')
-rw-r--r--templates/_train_details.html.ep25
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 9a440ef..2d61939 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -288,6 +288,31 @@
% }
</ul> <!-- mroute -->
% }
+% if ($departure->{operator}) {
+ <div>Betrieb: <%= $departure->{operator} %></div>
+% }
+% if ($departure->{details} and @{$departure->{details}}) {
+ Details:
+ <ul class="messages">
+% for my $pair (@{$departure->{details}}) {
+ <li>
+% if ($pair->[1]{icon}) {
+ <i class="material-icons"><%= $pair->[1]{icon} %></i>
+% }
+%= $pair->[0]
+% if (length($pair->[0]) > 25) {
+ <br/>
+% }
+ <span class="reason">
+%= $pair->[1]{text}
+ </span>
+ </li>
+% }
+% if ($departure->{route_info}) {
+ <li><%= $departure->{route_info} %></li>
+% }
+ </ul>
+% }
% if ($departure->{has_cycle}) {
<div class="db-attr"><a href="https://lib.finalrewind.org/dbdb/db_umlauf/<%= $departure->{train_no} %>.svg">Umlaufplan</a>
(ggf. fehlerhaft)</div>