summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-06-29 21:54:25 +0200
committerDerf Null <derf@finalrewind.org>2023-06-29 21:54:25 +0200
commita73e2edc8604c8d83c0a85044ca2fc8ef4108bfb (patch)
treea47f98c57a8860eccba63ed308f7d54486a2a927 /templates
parent4f54597c0d3f033a0b4f9d6792905218f0b141de (diff)
profile: use effective visibility from journey object
Diffstat (limited to 'templates')
-rw-r--r--templates/_public_status_card.html.ep4
-rw-r--r--templates/profile.html.ep2
-rw-r--r--templates/user_status.html.ep2
3 files changed, 3 insertions, 5 deletions
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 {
<a href="/p/<%= $name %>"><%= $name %></a> ist unterwegs
% }
- % if ($journey_visibility) {
- <i class="material-icons right"><%= visibility_icon($journey_visibility) %></i>
- % }
+ <i class="material-icons right"><%= visibility_icon($journey->{effective_visibility_str}) %></i>
</span>
% if ($privacy->{comments_visible} and $journey->{comment}) {
<p>„<%= $journey->{comment} %>“</p>
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 @@
</div>
<div class="row">
<div class="col s12 publicstatuscol" data-user="<%= $name %>" data-profile="1">
- %= 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
</div>
</div>
% 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 @@
<div class="row">
<div class="col s12 publicstatuscol" data-user="<%= $name %>">
- %= include '_public_status_card', name => $name, privacy => $privacy, journey => $journey, journey_visibility => $journey_visibility
+ %= include '_public_status_card', name => $name, privacy => $privacy, journey => $journey
</div>
</div>