| 123456789101112131415161718192021222324252627282930313233343536373839 |
- {% extends 'base.html.twig' %}
- {% block title %}Profil de {{username}}{% endblock %}
- {% block body %}
- Bonjour {{sessionUser}}, <a href="{{ path('disconnect') }}">Se déconnecter</a>
- <h1>{{ username }}</h1>
- {% if username != sessionUser %}
- {% if not follow %}
- <a href="/profile/{{username}}/follow">S'abonner</a>
- {% else %}
- <a href="/profile/{{username}}/unfollow">Se désabonner</a>
- {% endif %}
- {% endif %}
- <dl>
- <dt>Description :</dt>
- <dd>{{ description }}</dd>
- <dt>Ce profil est :</dt>
- {% if isPrivate %}
- <dd>Privé</dd>
- {% else %}
- <dd>Public</dd>
- {% endif %}
- </dl>
- <h2>Messages :</h2>
- {% if not privateNotAllowed %}
- {# <ul>
- {% for message in messages %}
- <li>{{ message.text }}</li>
- {% endfor %}
- </ul> #}
- {% endif %}
- <h2>Ajouter un message :</h2>
- {# {{ form_start(form) }}
- {{ form_errors(form) }}
- {{ form_widget(form) }}
- <input type="submit">
- {{ form_end(form) }} #}
- {% endblock %}
|