diff options
author | Derf Null <derf@finalrewind.org> | 2023-06-23 22:43:41 +0200 |
---|---|---|
committer | Derf Null <derf@finalrewind.org> | 2023-06-23 22:43:41 +0200 |
commit | c5957fbdfdf5a3871e0ae421c7e6042ce580d52d (patch) | |
tree | d44bd25531dd7489ae72e4f61831e139d0d7d992 /templates | |
parent | c32b93ff4da116921aa5ac8da4dcfddbf02a2d55 (diff) |
User: remove legacy public_level / is_public field
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_public_status_card.html.ep | 2 | ||||
-rw-r--r-- | templates/profile.html.ep | 2 | ||||
-rw-r--r-- | templates/user_status.html.ep | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep index 42d507e..65255c5 100644 --- a/templates/_public_status_card.html.ep +++ b/templates/_public_status_card.html.ep @@ -14,7 +14,7 @@ <i class="material-icons right"><%= visibility_icon($journey_visibility) %></i> % } </span> - % if ($public_level & 0x04 and $journey->{comment}) { + % if ($privacy->{comments_visible} and $journey->{comment}) { <p>„<%= $journey->{comment} %>“</p> % } <p> diff --git a/templates/profile.html.ep b/templates/profile.html.ep index 06f8cfe..ed7ff0d 100644 --- a/templates/profile.html.ep +++ b/templates/profile.html.ep @@ -79,7 +79,7 @@ </div> <div class="row"> <div class="col s12 publicstatuscol" data-user="<%= $name %>" data-profile="1"> - %= include '_public_status_card', name => $name, public_level => $public_level, journey => $journey, journey_visibility => $journey_visibility, from_profile => 1 + %= include '_public_status_card', name => $name, privacy => $privacy, journey => $journey, journey_visibility => $journey_visibility, from_profile => 1 </div> </div> % if ($journeys and @{$journeys}) { diff --git a/templates/user_status.html.ep b/templates/user_status.html.ep index d67ffb0..97c10ec 100644 --- a/templates/user_status.html.ep +++ b/templates/user_status.html.ep @@ -1,6 +1,6 @@ <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 + %= include '_public_status_card', name => $name, privacy => $privacy, journey => $journey, journey_visibility => $journey_visibility </div> </div> |