summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-05-18 17:10:53 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-05-18 17:10:53 +0200
commite68043b8fb840bad3091f53f5e9adca3451d40d1 (patch)
tree351818a9ff0ec03079b01374a96ea9368066b633 /templates
parentb4676c11fbb6893558f3c168183786e666b3ae72 (diff)
Show arrival/departure platform in journey card
Diffstat (limited to 'templates')
-rw-r--r--templates/_checked_in.html.ep8
-rw-r--r--templates/_public_status_card.html.ep10
2 files changed, 16 insertions, 2 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index 1e15cbd..48e866c 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.html.ep
@@ -8,12 +8,15 @@
data-arrival="<%= $journey->{real_arrival}->epoch %>">
% if ($journey->{departure_countdown} > 120) {
Abfahrt in <%= sprintf('%.f', $journey->{departure_countdown} / 60) %> Minuten
+ <br/>von Gleis <%= $journey->{dep_platform} %>
% }
% elsif ($journey->{departure_countdown} > 60) {
Abfahrt in einer Minute
+ <br/>von Gleis <%= $journey->{dep_platform} %>
% }
% elsif ($journey->{departure_countdown} > 0) {
Abfahrt in weniger als einer Minute
+ <br/>von Gleis <%= $journey->{dep_platform} %>
% }
% elsif (defined $journey->{arrival_countdown}) {
% if ($journey->{arrival_countdown} > 60) {
@@ -26,6 +29,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
@@ -75,7 +81,7 @@
<p>
Der automatische Checkout erfolgt in wenigen Minuten. Zum Umsteigen:
Aktuelle Station erneut in der Liste auswählen. Zum Weiterfahren im
- selben Zug: Neues Ziel wählen.
+ aktuellen Zug: Neues Ziel wählen.
</p>
% }
% elsif ($journey->{arr_name}) {
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