From fcfe19b047be3585a01bc08a2d7dfd3c5ff2f986 Mon Sep 17 00:00:00 2001 From: afornerot Date: Fri, 11 Jul 2025 14:00:54 +0200 Subject: [PATCH] svg --- compose.yaml | 1 - src/Service/RedmineService.php | 1 + templates/issue/view.html.twig | 33 +++++++++++++++++++++------------ 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/compose.yaml b/compose.yaml index 71c1ab1..e018d53 100644 --- a/compose.yaml +++ b/compose.yaml @@ -23,7 +23,6 @@ services: ports: - "8008:80" volumes: - - ./assets:/app/assets:delegated - ./src:/app/src:delegated - ./templates:/app/templates:delegated - ./config:/app/config:delegated diff --git a/src/Service/RedmineService.php b/src/Service/RedmineService.php index 0a78302..7577fac 100644 --- a/src/Service/RedmineService.php +++ b/src/Service/RedmineService.php @@ -246,6 +246,7 @@ class RedmineService $parent = $this->issueRepository->find($issue->getRedmine()['parent']['id']); } $issue->setParent($parent); + $this->em->flush(); } } diff --git a/templates/issue/view.html.twig b/templates/issue/view.html.twig index 2d77af2..122f4b7 100644 --- a/templates/issue/view.html.twig +++ b/templates/issue/view.html.twig @@ -17,6 +17,11 @@ +
+ {% for child in issue.childs %} + {{ child.id }} + {% endfor %} +
@@ -71,22 +76,26 @@
{% endif %} - {% for journal in issue.redmine.journals %} - {% if journal.notes != "" %} -
-
- Auteur = {{journal.user.name}}
- Créé le ={{ journal.created_on|date('d/m/Y H:i') }} + {% if issue.redmine.journals is defined %} + {% for journal in issue.redmine.journals %} + {% if journal.notes != "" %} +
+
+ Auteur = {{journal.user.name}}
+ Créé le ={{ journal.created_on|date('d/m/Y H:i') }} +
+
+ {{ journal.notes |textile_to_html|raw }} +
-
- {{ journal.notes |textile_to_html|raw }} -
-
- {% endif %} - {% endfor %} + {% endif %} + {% endfor %} + {% endif %}
{{dump(issue)}} + +