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 +++++++++++ 1 file changed, 11 insertions(+) (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 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} %> + % } + % }

-- cgit v1.2.3