From e68043b8fb840bad3091f53f5e9adca3451d40d1 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 18 May 2019 17:10:53 +0200 Subject: Show arrival/departure platform in journey card --- templates/_public_status_card.html.ep | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'templates/_public_status_card.html.ep') 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 @@ <%= $name %> ist unterwegs

-

<%= $journey->{train_type} %> <%= $journey->{train_no} %>
+ % if ($journey->{train_line}) { +
<%= $journey->{train_type} %> <%= $journey->{train_line} %> <%= $journey->{train_no} %>
+ % } + % else { +
<%= $journey->{train_type} %> <%= $journey->{train_no} %>
+ % }
@@ -28,6 +33,9 @@ % else { Ziel erreicht % } + % if ($journey->{arrival_countdown} < (60 * 15)) { +
auf Gleis <%= $journey->{arr_platform} %> + % } % } % elsif ($journey->{arr_name}) { Ankunft in mehr als zwei Stunden -- cgit v1.2.3