From 6d261197e3138c80357ec485749e2089ef6ff96a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 27 Feb 2023 22:14:54 +0100 Subject: set visibility per journey (wip) some odds and ends left to polish, but ready for testing --- templates/profile.html.ep | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'templates/profile.html.ep') 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 @@ % } -% if ($public_level & 0x02 or ($public_level & 0x01 and is_user_authenticated())) { -
-
- %= include '_public_status_card', name => $name, public_level => $public_level, journey => $journey -
+
+
+ %= include '_public_status_card', name => $name, public_level => $public_level, journey => $journey, journey_visibility => $journey_visibility
-% } -% if ($public_level & 0x20 or ($public_level & 0x10 and is_user_authenticated())) { +
+% if ($journeys and @{$journeys}) {

Letzte Fahrten von <%= $name %>

-- cgit v1.2.3