From a73e2edc8604c8d83c0a85044ca2fc8ef4108bfb Mon Sep 17 00:00:00 2001 From: Derf Null Date: Thu, 29 Jun 2023 21:54:25 +0200 Subject: profile: use effective visibility from journey object --- templates/_public_status_card.html.ep | 4 +--- templates/profile.html.ep | 2 +- templates/user_status.html.ep | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'templates') diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep index 65255c5..33635ae 100644 --- a/templates/_public_status_card.html.ep +++ b/templates/_public_status_card.html.ep @@ -10,9 +10,7 @@ % else { <%= $name %> ist unterwegs % } - % if ($journey_visibility) { - <%= visibility_icon($journey_visibility) %> - % } + <%= visibility_icon($journey->{effective_visibility_str}) %> % if ($privacy->{comments_visible} and $journey->{comment}) {

„<%= $journey->{comment} %>“

diff --git a/templates/profile.html.ep b/templates/profile.html.ep index ed7ff0d..c0ffe1d 100644 --- a/templates/profile.html.ep +++ b/templates/profile.html.ep @@ -79,7 +79,7 @@
- %= include '_public_status_card', name => $name, privacy => $privacy, journey => $journey, journey_visibility => $journey_visibility, from_profile => 1 + %= include '_public_status_card', name => $name, privacy => $privacy, journey => $journey, from_profile => 1
% if ($journeys and @{$journeys}) { diff --git a/templates/user_status.html.ep b/templates/user_status.html.ep index 97c10ec..95d2dfa 100644 --- a/templates/user_status.html.ep +++ b/templates/user_status.html.ep @@ -1,6 +1,6 @@
- %= include '_public_status_card', name => $name, privacy => $privacy, journey => $journey, journey_visibility => $journey_visibility + %= include '_public_status_card', name => $name, privacy => $privacy, journey => $journey
-- cgit v1.2.3