From e1561624beb1f53af84352d48fc639d877eb9068 Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Wed, 10 Sep 2025 10:33:45 +0100 Subject: [PATCH] appview/pages: hide profile-card from non-overview pages on mobile Change-Id: pzrysszkwwtkmwvromukskvoporpooys on medium and above: - show profile card on all profile pages on mobile: - show profile card on overview page - hide profile card on all other profile pages Signed-off-by: oppiliappan --- appview/pages/templates/layouts/profilebase.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/appview/pages/templates/layouts/profilebase.html b/appview/pages/templates/layouts/profilebase.html index d658db47..65f156ed 100644 --- a/appview/pages/templates/layouts/profilebase.html +++ b/appview/pages/templates/layouts/profilebase.html @@ -9,14 +9,19 @@ {{ define "content" }} {{ template "profileTabs" . }} -
+
-
+ {{ $style := "hidden md:block md:col-span-3" }} + {{ if eq $.Active "overview" }} + {{ $style = "md:col-span-3" }} + {{ end }} +
{{ template "user/fragments/profileCard" .Card }} {{ block "punchcard" .Card.Punchcard }} {{ end }}
+ {{ block "profileContent" . }} {{ end }}
-- 2.43.0