diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-05-30 12:16:09 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-05-30 12:16:09 +0200 |
commit | a985b8cd1d7f1b73189a1f63f25d2c4aa5d1f04a (patch) | |
tree | 3d0e25a8bd20d73304ea13fd2b2cf0a66273bd0d | |
parent | 52c2ffeb24dc9fc5aa6c3a4a1d5202046b809637 (diff) |
Hide messages box if there are no messages
Closes #233
-rw-r--r-- | templates/_checked_in.html.ep | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index d5d2792..92d9593 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -321,7 +321,7 @@ % if (@{stash('timeline') // []}) { %= include '_timeline_link', timeline => stash('timeline'), from_checkin => 1 % } - % if ($journey->{arr_name}) { + % if ($journey->{arr_name} and @{$journey->{extra_data}{him_msg} // []}) { <div class="card" style="margin-top: <%= scalar @{stash('timeline') // []} ? '1.5rem' : '3em' %>;"> <div class="card-content"> <i class="material-icons small right sync-failed-marker grey-text" style="display: none;">sync_problem</i> @@ -351,6 +351,8 @@ % } </div> </div> + % } + % if ($journey->{arr_name}) { <div class="card" style="margin-top: 3em;"> <div class="card-content"> <i class="material-icons small right sync-failed-marker grey-text" style="display: none;">sync_problem</i> |