From 78f66c72fc136100e0bddbcb9e6e947851e7428d Mon Sep 17 00:00:00 2001 From: Simounet Date: Wed, 14 Jun 2023 22:26:56 +0200 Subject: [PATCH] Remove annotation text on entry without any --- .../CoreBundle/Resources/views/Entry/entry.html.twig | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig index 84b29d241..59a3cf62e 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig @@ -266,10 +266,12 @@ {{ entry.domainName|removeWww }} -
  • - comment - {{ 'entry.view.annotations_on_the_entry'|transchoice(entry.annotations|length) }} -
  • + {% if entry.annotations|length %} +
  • + comment + {{ 'entry.view.annotations_on_the_entry'|transchoice(entry.annotations|length) }} +
  • + {% endif %} {% if entry.originUrl is not empty %}
  • launch