From a3bd49541e3aa63ed522804e08974c390017210d Mon Sep 17 00:00:00 2001 From: Sandeep Chauhan Date: Thu, 5 Sep 2024 00:10:51 +0530 Subject: [PATCH] Fix my tasks title issue on dismissing all tasks (#4112) Fixes #4091 --- .../templates/dashboard/includes/my-tasks.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hypha/apply/dashboard/templates/dashboard/includes/my-tasks.html b/hypha/apply/dashboard/templates/dashboard/includes/my-tasks.html index 0226885724..0b827795ac 100644 --- a/hypha/apply/dashboard/templates/dashboard/includes/my-tasks.html +++ b/hypha/apply/dashboard/templates/dashboard/includes/my-tasks.html @@ -1,11 +1,13 @@ {% load i18n %}
-

{% trans "My tasks" %}

+ {% if my_tasks.data %} +

{% trans "My tasks" %}

-
- {% for task in my_tasks.data %} - {% include "todo/todolist_item.html" with button_type_class="button--transparent" %} - {% endfor %} -
+
+ {% for task in my_tasks.data %} + {% include "todo/todolist_item.html" with button_type_class="button--transparent" %} + {% endfor %} +
+ {% endif %}