user: FIX problème de perf à l'affichage
Le serveur aime pas devoir recalculer à chaque fois le nombre de commentaires de chaque topic
This commit is contained in:
parent
3a46f8046c
commit
4117ec4b15
|
@ -67,14 +67,12 @@
|
|||
<th>Titre</th>
|
||||
<th>Forum</th>
|
||||
<th>Création</th>
|
||||
<th>Commentaires</th>
|
||||
</tr>
|
||||
{% for t in member.topics %}
|
||||
<tr>
|
||||
<td><a href="{{ url_for('forum_topic', f=t.forum, page=(t, 1)) }}">{{ t.title }}</a></td>
|
||||
<td><a href="{{ url_for('forum_page', f=t.forum) }}">{{ t.forum.name }}</a></td>
|
||||
<td>Le {{ t.date_created|date }}</td>
|
||||
<td>{{ t.thread.comments.count() }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
|
Loading…
Reference in New Issue