Files
interchan/board/templates/board/post_detail.html
Alek Ratzloff 439035f1d8 Add return link to thread view
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>
2022-05-07 16:30:32 -07:00

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">&nbsp;</div>
<div class="column">
<h1>/{{ board.url }}/ - {{ board.name }}</h1>
</div>
<div class="column">&nbsp;</div>
</div>
<hr />
{# post creation form #}
<div class="row">
<div class="column">&nbsp;</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>&nbsp;</th>
<td>
{% localize on %}Max image size{% endlocalize %}:
{{ max_upload_size|measure_bytes }}
</td>
</tr>
<tr><td>&nbsp;</td><td><input type="submit" value="Submit" /></td></tr>
</table>
</form>
</div>
<div class="column">&nbsp;</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 %}