From 2079d3dcf288160587484db7fa8a762e13796466 Mon Sep 17 00:00:00 2001 From: Santino Molinaro <85284133+Santino-Trade@users.noreply.github.com> Date: Wed, 11 Dec 2024 10:18:13 +0000 Subject: [PATCH] Feature/tss 2283/dashboard group tasks by barrier merge (#861) * Rearrange dashboard task HTML to accomidate links in content * Update URL links * Bugfix for single task barriers --------- Co-authored-by: santinomolinaro Co-authored-by: Feroze Rub --- .../barriers/partials/dashboard_tasks.html | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/templates/barriers/partials/dashboard_tasks.html b/templates/barriers/partials/dashboard_tasks.html index 86410e86f..3c726caa8 100644 --- a/templates/barriers/partials/dashboard_tasks.html +++ b/templates/barriers/partials/dashboard_tasks.html @@ -17,11 +17,27 @@

Tasks you need to complete for barriers yo

{{ barrier.task_list|length }} Tasks on this barrier

    {% for task in barrier.task_list %} -
  • {{ task.message }}
  • +
  • + {% for text_section in task.message %} + {% if text_section == task.link_text %} + {{ text_section }} + {% else %} + {{ text_section }} + {% endif %} + {% endfor %} +
  • {% endfor %}
{% else %} -

{{ barrier.task_list.0.message }}

+

+ {% for text_section in barrier.task_list.0.message %} + {% if text_section == barrier.task_list.0.link_text %} + {{ text_section }} + {% else %} + {{ text_section }} + {% endif %} + {% endfor %} +

{% endif %}

{{ barrier.modified_by }} updated on {{ barrier.modified_on }}