]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
display how much comments there are for an entry
authorThomas Citharel <tcit@tcit.fr>
Wed, 24 Feb 2016 12:36:08 +0000 (13:36 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 26 Feb 2016 17:14:42 +0000 (18:14 +0100)
src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig

index 39e14a7e0d23d1b51f1753b7b83621499b62145a..2037321eb1dfae37d6f3a37b73d99524b5034db4 100644 (file)
@@ -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"
index 988cbd29cfff2ea5398aee0e935bea41b5458ad2..817e39b8142a7736bbb7f4d6a1982e0d992eba49 100644 (file)
@@ -29,7 +29,8 @@
             <li><a href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&amp;body={{ entry.url|url_encode }}" title="{% trans %}Does this article appear wrong?{% endtrans %}" class="tool bad-display icon icon-delete"><span>{% trans %}Does this article appear wrong?{% endtrans %}</span></a></li>
         </ul>
     </div>
-
+        {% set nbComments = entry.comments | length %}
+        <span class="tool link mdi-communication-comment"> {% transchoice nbComments %}{0} No annotations|{1} One annotation|]1,Inf[ %nbComments% annotations{% endtranschoice %}</span>
         <aside class="tags">
             {% for tag in entry.tags %}
                 <span class="mdi-action-label-outline">{{ tag.label }}</span> <a href="{{ path('remove_tag', { 'entry': entry.id, 'tag': tag.id }) }}"><i>✘</i></a>
index c2bbd845f339b1227177428c0e7c2330994b0136..4839c3ea4e72d7c4df9f84f6166e6957f6388a08 100644 (file)
@@ -187,6 +187,8 @@ main {
         </header>
         <aside>
             <a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link mdi-content-link"> <span>{{ entry.domainName|removeWww }}</span></a>
+            {% set nbComments = entry.comments | length %}
+            <span class="tool link mdi-communication-comment"> {% transchoice nbComments %}{0} No annotations|{1} One annotation|]1,Inf[ %nbComments% annotations{% endtranschoice %}</span>
             <div id="list">
                 {% for tag in entry.tags %}
                     <div class="chip">