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

View File

@ -7,12 +7,19 @@
<thead> <thead>
<tr> <tr>
<td></td> <td></td>
<td>Hozzászólások száma</td>
<td>Utolsó hozzászólás</td>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for topic in topicGroup.topics %} {% for topic in topicGroup.topics %}
<tr class="{{ cycle(['odd', 'even'], loop.index0) }}"> <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><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> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>