diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-01-27 20:22:46 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-01-27 20:25:02 +0100 |
commit | 47171500b7209d1f14078c13e37664d2de29a1cc (patch) | |
tree | 72c262854fb54b2e71cc678ad25b7ff93e23e441 /templates | |
parent | 556bafffcfa205057a4ab75c027788a67ea36f3f (diff) |
fix bugs related to users without past journeys1.13.9
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_public_status_card.html.ep | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep index 04a8938..6979ad7 100644 --- a/templates/_public_status_card.html.ep +++ b/templates/_public_status_card.html.ep @@ -155,7 +155,12 @@ <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> - Zuletzt gesehen in <%= $journey->{arr_name} %>. + % if ($journey->{arr_name}) { + Zuletzt gesehen in <%= $journey->{arr_name} %>. + % } + % else { + Noch keine Zugfahrten geloggt. + % } </p> </div> </div> |