From a1865fa69e3a90e484e8423e256e1cb969b7e04d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 14 Feb 2020 16:29:44 +0100 Subject: add privacy setting for showing history and latest arrival timestamp --- templates/_public_status_card.html.ep | 9 ++++++++- 1 file changed, 8 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 810c4b8..ced0c6f 100644 --- a/templates/_public_status_card.html.ep +++ b/templates/_public_status_card.html.ep @@ -163,7 +163,14 @@ <%= $name %> ist gerade nicht eingecheckt

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