From 20360d833a474f44bb75c5c74c7947704ad59b6a Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 27 Aug 2024 20:24:06 +0200 Subject: [PATCH] =?UTF-8?q?modifie=20l=E2=80=99apparence=20des=20commentai?= =?UTF-8?q?res?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Repository/CommentRepository.php | 2 +- templates/project/show.html.twig | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Repository/CommentRepository.php b/src/Repository/CommentRepository.php index 25efd25..e26232e 100644 --- a/src/Repository/CommentRepository.php +++ b/src/Repository/CommentRepository.php @@ -27,7 +27,7 @@ class CommentRepository extends ServiceEntityRepository ->join('c.task', 't') ->andWhere('t.project = :project') ->setParameter('project', $project) - ->orderBy('c.createdAt', 'ASC') + ->orderBy('c.createdAt', 'DESC') ->getQuery() ->getResult() ; diff --git a/templates/project/show.html.twig b/templates/project/show.html.twig index 5d917f4..7b74428 100644 --- a/templates/project/show.html.twig +++ b/templates/project/show.html.twig @@ -105,11 +105,10 @@
{% for comment in comments %}
- {{ project.name }} - {{ comment.task.project.name }} {{ comment.content|markdown_to_html }}
{% endfor %}