{% extends "board/base.html" %}
{% block title %}
{% with title=board.url %}
{{ block.super }}
{% endwith %}
{% endblock title %}
{% block content %}
{# board header #}
/{{ board.url }}/ - {{ board.name }}
{# post creation form #}
Create a new thread
{# 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 %}