mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
Notification: add a counter for notifications
This commit is contained in:
@@ -60,15 +60,29 @@
|
||||
{% if not notification.isReadBy(app.user) %}
|
||||
<div class="badge bg-danger">{{ 'notification.is_unread'|trans }}</div>
|
||||
{% endif %}
|
||||
{% if notification.isSystem %}
|
||||
<div class="badge bg-chill-green">{{ 'notification.is_system'|trans }}</div>
|
||||
{% endif %}
|
||||
|
||||
</h2>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<div class="item-col">
|
||||
{% if step == 'inbox' %}
|
||||
{{ 'notification.from'|trans }}: {{ notification.sender|chill_entity_render_string }}
|
||||
{% if step == 'inbox' and not notification.isSystem %}
|
||||
{{ 'notification.from'|trans }}: {{ notification.sender|chill_entity_render_string }}
|
||||
{% else %}
|
||||
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="item-col">{{ 'notification.adressees'|trans }}{% for a in notification.addressees %}{{ a|chill_entity_render_string }}{% if not loop.last %}, {% endif %}{% endfor %}</div>
|
||||
<div class="item-col">{{ 'notification.adressees'|trans }}
|
||||
<ul>
|
||||
{% for a in notification.addressees %}
|
||||
<li>
|
||||
{{ a|chill_entity_render_string }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="item-col">{{ notification.date|format_datetime('long', 'short') }}</div>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
|
@@ -65,7 +65,7 @@
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if appendCommentForm is defined %}
|
||||
{% if appendCommentForm is not null %}
|
||||
<div>
|
||||
{{ form_start(appendCommentForm) }}
|
||||
{{ form_widget(appendCommentForm) }}
|
||||
|
Reference in New Issue
Block a user