Added forum topic last post view

This commit is contained in:
Polonkai Gergely 2012-07-13 13:53:41 +02:00
parent 00190c3e37
commit c1232c9792
2 changed files with 11 additions and 3 deletions

View File

@ -7,7 +7,6 @@
<thead>
<tr>
<td colspan="2"><a href="{{ path('KekRozsakFrontBundle_forum_topic_list', {topicGroupSlug: topicGroup.slug}) }}">{{ topicGroup.title }}</a></td>
<td>Témák száma</td>
<td>Hozzászólások száma</td>
<td>Utolsó hozzászólás</td>
</tr>
@ -19,8 +18,10 @@
<td>[ikon]</td>
<td><a href="{{ path('KekRozsakFrontBundle_forum_post_list', {topicGroupSlug: topicGroup.slug, topicSlug: topic.slug}) }}">{{ topic.title }}</a></td>
<td></td>
<td></td>
<td></td>
<td>
{{ topic.lastPost.createdBy.displayName }}<br />
{{ topic.lastPost.createdAt|date('Y-m-d H:i') }}
</td>
</tr>
{% endfor %}
{% else %}

View File

@ -7,12 +7,19 @@
<thead>
<tr>
<td></td>
<td>Hozzászólások száma</td>
<td>Utolsó hozzászólás</td>
</tr>
</thead>
<tbody>
{% for topic in topicGroup.topics %}
<tr class="{{ cycle(['odd', 'even'], loop.index0) }}">
<td><a href="{{ path('KekRozsakFrontBundle_forum_post_list', { topicGroupSlug: topicGroup.slug, topicSlug: topic.slug }) }}">{{ topic.title }}</a></td>
<td></td>
<td>
{{ topic.lastPost.createdBy.displayName }}<br />
{{ topic.lastPost.createdAt|date('Y-m-d H:i') }}
</td>
</tr>
{% endfor %}
</tbody>