From 3d0c9ec726b38745f19a80c46af945694df413b4 Mon Sep 17 00:00:00 2001 From: afornerot Date: Thu, 17 Jul 2025 21:34:42 +0200 Subject: [PATCH] svg --- public/lib/app/app.js | 4 ++++ templates/issue/view.html.twig | 2 +- templates/project/view.html.twig | 30 ++++++++++++++++++++++++++++-- 3 files changed, 33 insertions(+), 3 deletions(-) diff --git a/public/lib/app/app.js b/public/lib/app/app.js index c1ae199..bebca3a 100644 --- a/public/lib/app/app.js +++ b/public/lib/app/app.js @@ -61,4 +61,8 @@ $(document).ready(function () { }); }); +$(function () { + $('[data-bs-toggle="tooltip"]').tooltip(); +}); + diff --git a/templates/issue/view.html.twig b/templates/issue/view.html.twig index dbbd1cd..5db83c4 100644 --- a/templates/issue/view.html.twig +++ b/templates/issue/view.html.twig @@ -2,7 +2,7 @@
#{{ issue.redmine.id }} = {{ issue.redmine.subject }}
- +
diff --git a/templates/project/view.html.twig b/templates/project/view.html.twig index 72ce0ce..ec8e4b9 100644 --- a/templates/project/view.html.twig +++ b/templates/project/view.html.twig @@ -322,7 +322,21 @@
#{{issue.id}}
{% if issue.parent %} -
#{{issue.parent.id}} = {{issue.parent.redmine.subject}}
+ {% set sprintName = "Aucun" %} + {% for sprint in issue.parent.project.redmine.sprints %} + {% if sprint.id == issue.parent.rowsprint %} + {% set sprintName = sprint.name %} + {% endif %} + {% endfor %} + +
+ #{{issue.parent.id}} = {{issue.parent.redmine.subject}} +
{% endif %}
@@ -345,7 +359,19 @@ {% if issue.childs is not empty %}
{% for child in issue.childs %} -
+ {% set sprintName = "Aucun" %} + {% for sprint in child.project.redmine.sprints %} + {% if sprint.id == child.rowsprint %} + {% set sprintName = sprint.name %} + {% endif %} + {% endfor %} + +
#{{child.id}}
{{child.redmine.subject}}