Browse Source

modifie l’apparence des commentaires

master
vincent 3 months ago
parent
commit
20360d833a
2 changed files with 2 additions and 3 deletions
  1. +1
    -1
      src/Repository/CommentRepository.php
  2. +1
    -2
      templates/project/show.html.twig

+ 1
- 1
src/Repository/CommentRepository.php View File

@ -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()
;


+ 1
- 2
templates/project/show.html.twig View File

@ -105,11 +105,10 @@
<div class="col mb-3">
{% for comment in comments %}
<blockquote class="blockquote">
{{ project.name }}
{{ comment.task.project.name }}
{{ comment.content|markdown_to_html }}
</blockquote>
<figcaption class="blockquote-footer">
{{ comment.task.name }}
{% include 'partials/_comment-metadata.html.twig' %}
</figcaption>
{% endfor %}


Loading…
Cancel
Save