When you're looking at a post, there is now a "return" link that will take you back to page 1 of the board. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
54 lines
1.5 KiB
HTML
54 lines
1.5 KiB
HTML
{% extends "board/base.html" %}
|
|
{% load post_body %}
|
|
{% load l10n %}
|
|
|
|
{% block title %}
|
|
{% with title=board.url %}
|
|
{{ block.super }}
|
|
{% endwith %}
|
|
{% endblock title %}
|
|
|
|
{% block content %}
|
|
{# board header #}
|
|
<div class="row">
|
|
<div class="column"> </div>
|
|
<div class="column">
|
|
<h1>/{{ board.url }}/ - {{ board.name }}</h1>
|
|
</div>
|
|
<div class="column"> </div>
|
|
</div>
|
|
<hr />
|
|
{# post creation form #}
|
|
<div class="row">
|
|
<div class="column"> </div>
|
|
<div class="column">
|
|
<form method="post" action="{% url 'board:post_detail' url=board.url id=post.id %}" enctype="multipart/form-data">
|
|
{% csrf_token %}
|
|
<table>
|
|
{{ form.as_table }}
|
|
<tr>
|
|
<th> </th>
|
|
<td>
|
|
{% localize on %}Max image size{% endlocalize %}:
|
|
{{ max_upload_size|measure_bytes }}
|
|
</td>
|
|
</tr>
|
|
<tr><td> </td><td><input type="submit" value="Submit" /></td></tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
<div class="column"> </div>
|
|
</div>
|
|
{# return links #}
|
|
[ <a href="{% url 'board:board_detail' board.url %}">{% localize on %}Return{% endlocalize %}</a> ]
|
|
<hr />
|
|
{# posts #}
|
|
<div class="row post">
|
|
{% include "board/post_snippet.html" %}
|
|
{% for post in post.replies.all %}
|
|
<div class="row reply">
|
|
{% include "board/post_snippet.html" %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endblock content %} |