From 57f686b688d1ae09a3ab6fe6b54ba3c7c18c16a6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 19 Feb 2020 20:58:38 +0100 Subject: allow showing past journeys on shared status page --- templates/_public_status_card.html.ep | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (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 ced0c6f..907427f 100644 --- a/templates/_public_status_card.html.ep +++ b/templates/_public_status_card.html.ep @@ -164,13 +164,14 @@

% if ($journey->{arr_name}) { Zuletzt gesehen - % if ($public_level & 0x30 and $journey->{real_arrival}->epoch) { + % if ($journey->{real_arrival}->epoch and ($public_level & 0x20 or ($public_level & 0x10 and is_user_authenticated()))) { %= $journey->{real_arrival}->strftime('am %d.%m.%Y') - % } - in <%= $journey->{arr_name} %> - % if ($public_level & 0x30 and $journey->{real_arrival}->epoch) { + in <%= $journey->{arr_name} %> %= $journey->{real_arrival}->strftime('(Ankunft um %H:%M Uhr)') % } + % else { + in <%= $journey->{arr_name} %> + % } % } % else { Noch keine Zugfahrten geloggt. -- cgit v1.2.3