{% localize on %}Create a new thread{% endlocalize %}
{# posts #}
{% for post in threads %}
{# TODO we need some way to parameterize the last N threads #}
{% with reply_link=True replies_elided=post.replies.all|length|add:"-3" %}
{% include "board/post_snippet.html" %}
{% endwith %}
{# get the last 3 replies #}
{% for post in post.replies.all|dictsortreversed:"id"|slice:":3" reversed %}
{% include "board/post_snippet.html" %}
{% endfor %}
{% endfor %}
{# Page footer #}
{% if current_page > 1 %}
{% with prev_page=current_page|add:"-1" %}
{% localize on %}Prev{% endlocalize %}
{% endwith %}
{% endif %}
[
{% for page in pages %}
{% if current_page == page %}
{{page}}
{% else %}
{{page}}
{% endif %}
{% endfor %}
]
{% if current_page < last_page %}
{% with next_page=current_page|add:"1" %}
{% localize on %}Next{% endlocalize %}
{% endwith %}
{% endif %}