forum: reply page, CSS, and first_unread fix

This commit is contained in:
Skia committed 2017-02-25 14:38:10 +01:00
1 parent 777fdd7bd5
commit 7d99f02a4d
3 files changed
+15 -1

No files matched your search

+3
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 %}