From 3c3cfc38ba5bd32d46e13e657b9ceff211b98673 Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 18 Nov 2024 08:35:29 +0100 Subject: [PATCH] fix: Enhances activity visibility control Replaces conditional rendering with inline style for hidden activities. This simplifies the template logic and maintains consistent structure for all activities, enhancing UI flexibility. --- mood/templates/mood/status_edit.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mood/templates/mood/status_edit.html b/mood/templates/mood/status_edit.html index 69c6758..70a2863 100644 --- a/mood/templates/mood/status_edit.html +++ b/mood/templates/mood/status_edit.html @@ -79,14 +79,13 @@ {{ activitycategory.name }}

{% for activity in activitycategory.activity_set.all|dictsort:"name" %} - {% if not activity.hidden %} +

{{ activity }} -
- {% endif %} +

{% endfor %} {% endfor %} {% other_activities as activities %}