{# src/Sds/ForumBundle/Resources/views/Forum/forum.html.twig #}
{% extends "SdsSiteBundle::layout.html.twig" %}
{% block title %}Forum - {{ parent() }}{% endblock %}
{% block sdssite_body %}
<div id="forum">
<div id="globalforum">
<div id="catforums">
<p>
<a style="color: #bc2a4d;" href="{{ path('SdsForumBundle_accueil') }}">
{{ category.nom|upper }}
</a><span style="font-size: 8px; font-weight: bold;"> << </span>
<a style="color: #bc2a4d;" href="{{ path('SdsForumBundle_forum', { 'id': forum.id, 'tagForum': tagForum }) }}">
{{ tagForum|upper }}
</a>
</p>
<table class="categories">
<thead>
<tr>
<th style="width: 100px;">SUJETS</th>
<th style="width: 100px;">REPONSES</th>
<th style="width: 100px;">VU</th>
<th style="text-align: center; width: 240px;">DERNIER MESSAGE</th>
</tr>
</thead>
{% if listeTopics is defined %}
{% if listeTopics is empty %}
<tbody class="forums">
<tr>
<td>
Aucun topic n'est disponible dans ce forum
</td>
</tr>
</tbody>
{% endif %}
{% for topic in listeTopics %}
<tbody class="forums">
<tr>
<td style="padding-left: 5px;">
<a href="{{ path('SdsForumBundle_topic', { 'id': topic.id, 'tagTopic': topic.titre }) }}">{{ topic.titre }}</a><br />
</td>
<td style="text-align: center;">
<span style="font-size: 10px; font-weight: bold">{{ topic.post }}</span>
</td>
<td style="text-align: center;">
<span style="font-size: 10px; font-weight: bold">{{ topic.vu }}</span>
</td>
<td style="text-align: center;">
{% include "SdsForumBundle:Forum:lastPost.html.twig" with { 'post' : topic.lastPost } %}
</td>
</tr>
</tbody>
{% endfor %}
{% endif %}
</table>
</div>
</div>
</div>
{% endblock %}
Partager