summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-01-27 20:22:46 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-01-27 20:25:02 +0100
commit47171500b7209d1f14078c13e37664d2de29a1cc (patch)
tree72c262854fb54b2e71cc678ad25b7ff93e23e441 /templates
parent556bafffcfa205057a4ab75c027788a67ea36f3f (diff)
fix bugs related to users without past journeys1.13.9
Diffstat (limited to 'templates')
-rw-r--r--templates/_public_status_card.html.ep7
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>