summaryrefslogtreecommitdiff
path: root/templates/_train_details.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-12-05 16:28:51 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-12-05 16:28:51 +0100
commitea6d13144c105e7ae04fb2baed0189b8ecda9bdb (patch)
tree7ac176f0a11c47a9a9bd6c64e813681068d24a06 /templates/_train_details.html.ep
parente7efe6de232445e3ef7816db4661670f7839ba7a (diff)
train details: show expected utilization (via marudor.de)
Diffstat (limited to 'templates/_train_details.html.ep')
-rw-r--r--templates/_train_details.html.ep7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 05f4dec..e1ce093 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -120,6 +120,13 @@
% }
</div>
+% if (my $u = $departure->{utilization}) {
+ <div class="verbose">
+% my ($text, $icon1, $icon2) = utilization_icon($u);
+ <%= $text %><span style="padding-right: 0.5em;">.</span> 1. <i class="material-icons" aria-hidden="true" style="padding-right: 0.5em; vertical-align: bottom;"><%= $icon1 %></i> 2. <i class="material-icons" aria-hidden="true" style="vertical-align: bottom;"><%= $icon2 %></i>
+ </div>
+% }
+
% if ($departure->{moreinfo} and @{$departure->{moreinfo}}) {
Meldungen:
<ul>