summaryrefslogtreecommitdiff
path: root/templates/_checked_in.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-06-24 18:02:45 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-06-24 18:02:45 +0200
commit36121ccffc8dc65b27bcfbe1299fb6a7f9a5f77c (patch)
tree67aaec51f26b3d34eb4810205ad452ad10cc99c1 /templates/_checked_in.html.ep
parent6b9bf8e4861343dbc3f7a54436f5a6dcb2d08ec9 (diff)
show wagon order before departure1.8.0
Diffstat (limited to 'templates/_checked_in.html.ep')
-rw-r--r--templates/_checked_in.html.ep10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index 91cd37a..0f1dcb2 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.html.ep
@@ -44,6 +44,16 @@
% if ($journey->{departure_countdown} > 0 and $journey->{dep_platform}) {
<br/>von Gleis <%= $journey->{dep_platform} %>
% }
+ % if (my $wr = $journey->{wagonorder}) {
+ <br/>
+ %= $wr->direction == 100 ? '→' : '←';
+ % for my $wagon ($wr->wagons) {
+ % if (not ($wagon->is_locomotive or $wagon->is_powercar)) {
+ %= $wagon->number || $wagon->type
+ % }
+ % }
+ %= $wr->direction == 100 ? '→' : '←';
+ % }
</div>
<div class="progress" style="height: 1ex;">
<div class="determinate" style="width: <%= sprintf('%.2f', 100 * ($journey->{journey_completion} // 0)); %>%;"></div>