From a772d16b12ee84e8d0810c65b26664e8364b4047 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 24 Feb 2016 13:36:08 +0100 Subject: [PATCH] display how much comments there are for an entry --- src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml | 1 + .../Resources/views/themes/baggy/Entry/entry.html.twig | 3 ++- .../Resources/views/themes/material/Entry/entry.html.twig | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml index 39e14a7e..2037321e 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml @@ -98,6 +98,7 @@ Toggle favorite: 'Marquer comme favori' Delete: 'Supprimer' "{0} There is no entry.|{1} There is one entry.|]1,Inf[ There are %count% entries.": "{0} Il n'y a pas d'articles.|{1} Il y a un article.|]1,Inf[ Il y a %count% articles." http://website: "http://siteweb" +"{0} No annotations|{1} One annotation|]1,Inf[ %nbComments% annotations": "{0} Aucun commentaire|{1} Un commentaire|]1,Inf[ %nbComments% commentaires" # Edit entry Edit an entry: "Éditer un article" diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig index 988cbd29..817e39b8 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig @@ -29,7 +29,8 @@
  • {% trans %}Does this article appear wrong?{% endtrans %}
  • - + {% set nbComments = entry.comments | length %} + {% transchoice nbComments %}{0} No annotations|{1} One annotation|]1,Inf[ %nbComments% annotations{% endtranschoice %}