summaryrefslogtreecommitdiff
path: root/templates/_public_status_card.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-03-04 09:03:50 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-03-04 09:03:50 +0100
commite1231b88e2dd989dea0ce97d2b28d7e895cbfeaa (patch)
tree0d08bdf243f85b0efbaab23aebfeb988559672ec /templates/_public_status_card.html.ep
parent9abdaefaf59a4edc169419fb66bec237a29b9189 (diff)
status/profile: re-add ability to show latest checkout, if desired1.30.1
got lost in 1.30.0
Diffstat (limited to 'templates/_public_status_card.html.ep')
-rw-r--r--templates/_public_status_card.html.ep11
1 files changed, 11 insertions, 0 deletions
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 @@
<i class="material-icons small right sync-failed-marker grey-text" style="display: none;">sync_problem</i>
<span class="card-title"><%= $name %> ist gerade nicht eingecheckt</span>
<p>
+ % 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 <b><%= $journey->{arr_name} %></b>
+ %= $journey->{real_arrival}->strftime('(Ankunft um %H:%M Uhr)')
+ % }
+ % else {
+ in <b><%= $journey->{arr_name} %></b>
+ % }
+ % }
</p>
</div>
</div>