diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-02-14 16:29:44 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-02-14 16:29:44 +0100 |
commit | a1865fa69e3a90e484e8423e256e1cb969b7e04d (patch) | |
tree | e5cf2c747e9e4e07181c3e4257a2e3177c4ea773 /templates/_public_status_card.html.ep | |
parent | 6cbbc2b16f059a0d2b1f65a371e3c1e1f4c11fde (diff) |
add privacy setting for showing history and latest arrival timestamp
Diffstat (limited to 'templates/_public_status_card.html.ep')
-rw-r--r-- | templates/_public_status_card.html.ep | 9 |
1 files changed, 8 insertions, 1 deletions
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 @@ <span class="card-title"><%= $name %> ist gerade nicht eingecheckt</span> <p> % 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 <b><%= $journey->{arr_name} %></b> + % if ($public_level & 0x30 and $journey->{real_arrival}->epoch) { + %= $journey->{real_arrival}->strftime('(Ankunft um %H:%M Uhr)') + % } % } % else { Noch keine Zugfahrten geloggt. |