diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_train_details.html.ep | 25 |
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> |