{% for post in posts %} {% if post.is_event %} {% include "misago/thread/posts/event/index.html" %} {% else %} {% include "misago/thread/posts/post/index.html" %} {% endif %} {% endfor %}