{% extends "board/base.html" %} {% load post_body %} {% load l10n %} {% block title %} {% with title=board.url %} {{ block.super }} {% endwith %} {% endblock title %} {% block content %} {# board header #}
 

/{{ board.url }}/ - {{ board.name }}

 

{# post creation form #}
 

{% localize on %}Create a new thread{% endlocalize %}

{% csrf_token %} {{ form.as_table }}
  {% localize on %}Max image size{% endlocalize %}: {{ max_upload_size|measure_bytes }}
 
 

{# 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 %} {% endblock content %}