diff options
Diffstat (limited to 'templates/profile.html.ep')
-rw-r--r-- | templates/profile.html.ep | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/templates/profile.html.ep b/templates/profile.html.ep index 6a8d67d..63bc3ff 100644 --- a/templates/profile.html.ep +++ b/templates/profile.html.ep @@ -10,14 +10,12 @@ </div> </div> % } -% if ($public_level & 0x02 or ($public_level & 0x01 and is_user_authenticated())) { - <div class="row"> - <div class="col s12 publicstatuscol" data-user="<%= $name %>"> - %= include '_public_status_card', name => $name, public_level => $public_level, journey => $journey - </div> +<div class="row"> + <div class="col s12 publicstatuscol" data-user="<%= $name %>"> + %= include '_public_status_card', name => $name, public_level => $public_level, journey => $journey, journey_visibility => $journey_visibility </div> -% } -% if ($public_level & 0x20 or ($public_level & 0x10 and is_user_authenticated())) { +</div> +% if ($journeys and @{$journeys}) { <div class="row"> <div class="col s12"> <h2>Letzte Fahrten von <%= $name %></h1> |