mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
notifications: fix comments counter
This commit is contained in:
parent
460502a1f2
commit
2f5fecf414
@ -72,10 +72,13 @@
|
|||||||
<div class="item-row separator">
|
<div class="item-row separator">
|
||||||
<div class="item-col item-meta">
|
<div class="item-col item-meta">
|
||||||
|
|
||||||
{# TODO twig extension to count comments #}
|
{% if c.notification.comments|length > 0 %}
|
||||||
<div class="comment-counter visually-hidden">
|
<div class="comment-counter">
|
||||||
<span class="counter">4 commentaires</span>
|
<span class="counter">
|
||||||
</div>
|
{{ 'notification.counter comments'|trans({'nb': c.notification.comments|length }) }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="item-col">
|
<div class="item-col">
|
||||||
|
@ -29,3 +29,11 @@ notification:
|
|||||||
few {# non-lues}
|
few {# non-lues}
|
||||||
other {# non-lues}
|
other {# non-lues}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
counter comments: >-
|
||||||
|
{nb, plural,
|
||||||
|
=0 {Aucun commentaire}
|
||||||
|
one {# commentaire}
|
||||||
|
few {# commentaires}
|
||||||
|
other {# commentaires}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user