diff options
author | Daniel Friesel <derf@finalrewind.org> | 2023-02-27 22:14:54 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2023-02-27 22:14:54 +0100 |
commit | 6d261197e3138c80357ec485749e2089ef6ff96a (patch) | |
tree | 3089879a8863354e6b1cd669caf37bcb8558883a /templates/profile.html.ep | |
parent | fb3878665b38f1e4c2439238c19cba0c9767f721 (diff) |
set visibility per journey (wip)
some odds and ends left to polish, but ready for testing
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> |