From 973cccd494eb6b50e283b461644ee73e0b304e59 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 3 May 2019 10:49:14 +0200 Subject: checkin: lighter background color, more prominent destination selection --- templates/_checked_in.html.ep | 67 +++++++++++++++++------------------ templates/_public_status_card.html.ep | 2 +- 2 files changed, 33 insertions(+), 36 deletions(-) (limited to 'templates') diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index f7ca4e7..985a67d 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -1,35 +1,7 @@ -
-
+
+
- Eingecheckt -

- In <%= $journey->{train_type} %> <%= $journey->{train_no} %> - % if ($journey->{arr_name}) { - von <%= $journey->{dep_name} %> nach <%= $journey->{arr_name} %>. - % } - % else { - ab <%= $journey->{dep_name} %>. - % } -

-

- <%= $journey->{real_departure}->strftime('%H:%M') %> - % if ($journey->{real_departure}->epoch != $journey->{sched_departure}->epoch) { - (<%= sprintf('%+d', ($journey->{real_departure}->epoch - $journey->{sched_departure}->epoch)/60) %>) - % } - → - % if ($journey->{real_arrival}->epoch) { - <%= $journey->{real_arrival}->strftime('%H:%M') %> - % if ($journey->{real_arrival}->epoch != $journey->{sched_arrival}->epoch) { - (<%= sprintf('%+d', ($journey->{real_arrival}->epoch - $journey->{sched_arrival}->epoch)/60) %>) - % } - % } - % elsif ($journey->{arr_name}) { - noch nicht bekannt - % } - % else { - unbekannt - % } -

+ Eingecheckt in <%= $journey->{train_type} %> <%= $journey->{train_no} %>

% if ($journey->{departure_countdown} > 120) { @@ -57,10 +29,35 @@ Ankunft in mehr als zwei Stunden % }
-
-
+
+

+ % if ($journey->{arr_name}) { +

+

+ <%= $journey->{dep_name} %>
+ <%= $journey->{real_departure}->strftime('%H:%M') %> + % if ($journey->{real_departure}->epoch != $journey->{sched_departure}->epoch) { + (<%= sprintf('%+d', ($journey->{real_departure}->epoch - $journey->{sched_departure}->epoch)/60) %>) + % } +
+
+ <%= $journey->{arr_name} %>
+ % if ($journey->{real_arrival}->epoch) { + <%= $journey->{real_arrival}->strftime('%H:%M') %> + % if ($journey->{real_arrival}->epoch != $journey->{sched_arrival}->epoch) { + (<%= sprintf('%+d', ($journey->{real_arrival}->epoch - $journey->{sched_arrival}->epoch)/60) %>) + % } + % } + % else { + noch nicht bekannt + % } +
+
+
+

+ % } % if (@{$journey->{messages} // []} > 0 and $journey->{messages}[0]) {

    @@ -80,7 +77,7 @@

    % } % elsif ($journey->{arr_name}) { -

    Ziel ändern?

    +

    Ziel ändern?

    % } % else {

    Ziel wählen:

    @@ -109,7 +106,7 @@ % }
diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep index e357015..494ad43 100644 --- a/templates/_public_status_card.html.ep +++ b/templates/_public_status_card.html.ep @@ -43,7 +43,7 @@ (<%= sprintf('%+d', ($journey->{real_departure}->epoch - $journey->{sched_departure}->epoch)/60) %>) % }
-
+
% if ($journey->{arr_name}) { <%= $journey->{arr_name} %>
% } -- cgit v1.2.3