Ajout des permaliens sur les commentaires de topic

This commit is contained in:
Darks 2019-12-17 13:16:06 +01:00
parent e0e02d5423
commit 1e618fafd1
Signed by: Darks
GPG Key ID: F61F10FA138E797C
1 changed files with 11 additions and 7 deletions

View File

@ -19,16 +19,20 @@
<table class="thread">
{% for c in comments.items %}
<tr>
<tr id="{{ c.id }}">
{% if c != t.thread.top_comment %}
<td class="member">{{ widget_member.profile(c.author ) }}</td>
<td>
{% if c.date_created != c.date_modified %}
Le {{ c.date_created|date }} (Modifié le {{ c.date_modified|date }})
{% elif c.date_created == c.date_modified %}
Le {{ c.date_created|date }}
<div>{% if c.date_created != c.date_modified %}
Posté le {{ c.date_created|date }} (Modifié le {{ c.date_modified|date }})
{% else %}
Posté le {{ c.date_created|date }}
{% endif %}
<hr>
| <a href="{{ url_for('forum_topic', f=t.forum, t=t, page=comments.page, _anchor=c.id) }}">#</a>
| <a href="#">Modifier</a>
| <a href="#">Supprimer</a>
</div>
<!--<hr>-->
<p>{{ c.text }}</p>
{% elif loop.index0 != 0 %}
<div>Ce message est le top comment</div>
@ -39,7 +43,7 @@
</table>
{{ widget_pagination.paginate(comments, 'forum_topic', {'f': t.forum, 't':t}) }}
<div class=form>
<h3>Commenter le sujet</h3>
<form action="" method="post" enctype="multipart/form-data">