diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-05-18 17:10:53 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-05-18 17:10:53 +0200 |
commit | e68043b8fb840bad3091f53f5e9adca3451d40d1 (patch) | |
tree | 351818a9ff0ec03079b01374a96ea9368066b633 /templates/_public_status_card.html.ep | |
parent | b4676c11fbb6893558f3c168183786e666b3ae72 (diff) |
Show arrival/departure platform in journey card
Diffstat (limited to 'templates/_public_status_card.html.ep')
-rw-r--r-- | templates/_public_status_card.html.ep | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep index 543c72f..c806b17 100644 --- a/templates/_public_status_card.html.ep +++ b/templates/_public_status_card.html.ep @@ -4,7 +4,12 @@ <i class="material-icons small right sync-failed-marker grey-text" style="display: none;">sync_problem</i> <span class="card-title"><%= $name %> ist unterwegs</span> <p> - <div class="center-align"><b><%= $journey->{train_type} %> <%= $journey->{train_no} %></b></div> + % if ($journey->{train_line}) { + <div class="center-align"><b><%= $journey->{train_type} %> <%= $journey->{train_line} %></b> <%= $journey->{train_no} %></div> + % } + % else { + <div class="center-align"><b><%= $journey->{train_type} %> <%= $journey->{train_no} %></b></div> + % } <div class="center-align countdown" data-duration="<%= $journey->{journey_duration} // 0 %>" data-arrival="<%= $journey->{real_arrival}->epoch %>"> @@ -28,6 +33,9 @@ % else { Ziel erreicht % } + % if ($journey->{arrival_countdown} < (60 * 15)) { + <br/>auf Gleis <%= $journey->{arr_platform} %> + % } % } % elsif ($journey->{arr_name}) { Ankunft in mehr als zwei Stunden |