From e1231b88e2dd989dea0ce97d2b28d7e895cbfeaa Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 4 Mar 2023 09:03:50 +0100 Subject: status/profile: re-add ability to show latest checkout, if desired got lost in 1.30.0 --- templates/_public_status_card.html.ep | 11 +++++++++++ templates/privacy.html.ep | 10 ++++++++++ 2 files changed, 21 insertions(+) (limited to 'templates') diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep index cb0fb0d..915efdc 100644 --- a/templates/_public_status_card.html.ep +++ b/templates/_public_status_card.html.ep @@ -173,6 +173,17 @@ <%= $name %> ist gerade nicht eingecheckt

+ % if ($journey->{arr_name}) { + Zuletzt gesehen + % 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} %> + %= $journey->{real_arrival}->strftime('(Ankunft um %H:%M Uhr)') + % } + % else { + in <%= $journey->{arr_name} %> + % } + % }

diff --git a/templates/privacy.html.ep b/templates/privacy.html.ep index 2929c73..9222591 100644 --- a/templates/privacy.html.ep +++ b/templates/privacy.html.ep @@ -64,6 +64,16 @@ +
+
+
+ +
+
+
Wenn du (mit passender Sichtbarkeit) eingecheckt bist, werden unter -- cgit v1.2.3