From c2c38f55c49da74f472c4ead8be45c4e6bb13c60 Mon Sep 17 00:00:00 2001 From: Verox001 Date: Fri, 1 Mar 2024 09:25:36 +0100 Subject: [PATCH] Remove plus icon from not primary users --- templates/components/habit_lists.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/components/habit_lists.html b/templates/components/habit_lists.html index d6892e8..892535c 100644 --- a/templates/components/habit_lists.html +++ b/templates/components/habit_lists.html @@ -66,6 +66,8 @@
+ {% if habit_list.get_users()[0].id == current_user.id %} + {% if habit_list.get_users()|length > 1 %}
{% for user in habit_list.get_users() %} @@ -75,15 +77,19 @@ {% endfor %}
+ {% endif %} + {% else %} +
+ {% endif %}