diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-02-19 20:58:38 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-02-19 20:58:38 +0100 |
commit | 57f686b688d1ae09a3ab6fe6b54ba3c7c18c16a6 (patch) | |
tree | 1b582a989e9e8904a68bc1ca412652dc870e542e /templates/_public_status_card.html.ep | |
parent | 2652ea6bab56e40169334800f4b9c5a11c3ef601 (diff) |
allow showing past journeys on shared status page
Diffstat (limited to 'templates/_public_status_card.html.ep')
-rw-r--r-- | templates/_public_status_card.html.ep | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep index ced0c6f..907427f 100644 --- a/templates/_public_status_card.html.ep +++ b/templates/_public_status_card.html.ep @@ -164,13 +164,14 @@ <p> % if ($journey->{arr_name}) { Zuletzt gesehen - % if ($public_level & 0x30 and $journey->{real_arrival}->epoch) { + % 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> - % if ($public_level & 0x30 and $journey->{real_arrival}->epoch) { + in <b><%= $journey->{arr_name} %></b> %= $journey->{real_arrival}->strftime('(Ankunft um %H:%M Uhr)') % } + % else { + in <b><%= $journey->{arr_name} %></b> + % } % } % else { Noch keine Zugfahrten geloggt. |