forum: reply page, CSS, and first_unread fix

This commit is contained in:
Skia
2017-02-25 14:37:45 +01:00
parent 777fdd7bd5
commit 7d99f02a4d
3 changed files with 15 additions and 1 deletions

View File

@ -39,6 +39,9 @@
<p><a href="{{ url('forum:new_message', topic_id=topic.id) }}">{% trans %}Reply{% endtrans %}</a></p>
{% for m in topic.messages.select_related('author__avatar_pict').all() %}
{% if m.id == first_unread_message_id %}
<span id="first_unread"></span>
{% endif %}
{% if m.id >= first_unread_message_id %}
{{ display_message(m, user, True) }}
{% else %}