notification: add comment in show and append comment

This commit is contained in:
2021-12-28 23:25:12 +01:00
parent 9647785d8b
commit cb88a37885
5 changed files with 113 additions and 7 deletions

View File

@@ -16,6 +16,37 @@
{{ notification.message|chill_markdown_to_html }}
</div>
{% if notification.comments|length > 0 %}
{% for comment in notification.comments %}
<div>
<blockquote class="chill-user-quote">
{{ comment.content|chill_markdown_to_html }}
</blockquote>
{% if is_granted('CHILL_MAIN_NOTIFICATION_COMMENT_EDIT', comment) %}
<ul class="record_actions">
<li>
<a href="#" class="btn btn-edit"></a>
</li>
</ul>
{% endif %}
</div>
{% endfor %}
{% endif %}
{% if appendCommentForm is defined %}
<div>
{{ form_start(appendCommentForm) }}
{{ form_widget(appendCommentForm) }}
<ul class="record_actions">
<li>
<button type="submit" class="btn btn-save">{{ 'notification.append_comment'|trans }}</button>
</li>
</ul>
{{ form_end(appendCommentForm) }}
</div>
{% endif %}
<ul class="record_actions sticky-form-buttons">
<li class="cancel">
<a href="{{ chill_return_path_or('chill_main_notification_my') }}" class="btn btn-cancel">