summaryrefslogtreecommitdiff
path: root/templates
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
parente7efe6de232445e3ef7816db4661670f7839ba7a (diff)
train details: show expected utilization (via marudor.de)
Diffstat (limited to 'templates')
-rw-r--r--templates/_train_details.html.ep7
-rw-r--r--templates/about.html.ep1
2 files changed, 8 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>
diff --git a/templates/about.html.ep b/templates/about.html.ep
index 155dd8b..f4b9b33 100644
--- a/templates/about.html.ep
+++ b/templates/about.html.ep
@@ -13,6 +13,7 @@
Wagenreihung: <a href="https://finalrewind.org/projects/Travel-Status-DE-DBWagenreihung/">Travel::Status::DE::DBWagenreihung</a>
v<%= $Travel::Status::DE::DBWagenreihung::VERSION %><br/>
Karte: <a href="https://v5.db.transport.rest/">transport.rest</a> von <a href="https://github.com/derhuerst">@derhuerst</a><br/>
+ Zugauslastung: <a href="https://docs.marudor.de/">marudor.de</a><br/>
<br/>
Grundlage der <a href="https://data.deutschebahn.com/dataset/zugbildungsplanzugbildungsplan-zpar">Wagengattungsdaten</a> © DB Fernverkehr AG, lizensiert unter CC-BY 4.0
<br/>