hegresphere/templates/message/show.html.twig

28 lines
1.1 KiB
Twig
Raw Permalink Normal View History

2024-11-21 17:04:56 +01:00
{% extends 'base.html.twig' %}
2024-12-20 09:06:54 +01:00
{% block title %}Voir le Message{% endblock %}
2024-11-21 17:04:56 +01:00
{% block body %}
2024-12-20 09:06:54 +01:00
<div class="container mx-auto p-6">
<h1 class="text-3xl font-bold mb-6 text-center">Message de {{ message.sender.nickname }}</h1>
2024-11-21 17:04:56 +01:00
2024-12-20 09:06:54 +01:00
<div class="max-w-lg mx-auto bg-white p-6 rounded-lg shadow">
<div class="mb-4">
<p class="text-gray-700"><strong>De :</strong> {{ message.sender.nickname }}</p>
<p class="text-gray-700"><strong>Reçu le :</strong> {{ message.sendingDate|date('d/m/Y H:i') }}</p>
</div>
2024-11-21 17:04:56 +01:00
2024-12-20 09:06:54 +01:00
<div class="bg-gray-100 p-4 rounded mb-6">
<p class="text-gray-800 whitespace-pre-line">{{ message.content }}</p>
</div>
2024-11-21 17:04:56 +01:00
2024-12-20 09:06:54 +01:00
<!-- Bouton pour répondre -->
<div class="text-center">
<a href="{{ path('app_message_new', {'receiver': message.sender.id}) }}"
class="bg-teal-500 text-white px-6 py-2 rounded hover:bg-teal-600">
Répondre
</a>
</div>
</div>
</div>
{% endblock %}