notification: add show action

This commit is contained in:
2021-12-28 22:35:15 +01:00
parent f453dbb543
commit 1ad6a958e2
5 changed files with 133 additions and 13 deletions

View File

@@ -0,0 +1,28 @@
{% extends "@ChillMain/layout.html.twig" %}
{% block title 'notification.show notification from %sender%'|trans({ '%sender%': notification.sender|chill_entity_render_string }) %}
{% block content %}
<div class="row">
<div class="col-md-10">
<h1>{{ 'notification.Notification'|trans }}</h1>
<div>
{% include handler.getTemplate(notification) with handler.getTemplateData(notification) %}
</div>
<div>
{# à remplacer par un commentEmbeddable #}
{{ notification.message|chill_markdown_to_html }}
</div>
<ul class="record_actions sticky-form-buttons">
<li class="cancel">
<a href="{{ chill_return_path_or('chill_main_notification_my') }}" class="btn btn-cancel">
{{ 'Cancel'|trans|chill_return_path_label }}
</a>
</li>
</ul>
</div>
</div>
{% endblock content %}