thread.html
32 lines
| 878 B
| text/html
|
HtmlLexer
/ templates / thread.html
neko259
|
r20 | {% extends "base.html" %} | |
{% block content %} | |||
{% if posts %} | |||
{% for post in posts %} | |||
neko259
|
r22 | {% if post.image %} | |
<div class="block"> | |||
<a href="{{ post.image.url }}"><img | |||
src="{{ post.image.url_200x150 }}" /> | |||
</a> | |||
</div> | |||
{% endif %} | |||
<div class="block"> | |||
<span class="title">{{ post.title }}</span> | |||
<span class="post_id">(#{{ post.id }})</span><br /> | |||
<span class="text">{{ post.text }}</span><br /> | |||
</div> | |||
neko259
|
r20 | <hr /> | |
{% endfor %} | |||
{% else %} | |||
No threads found. | |||
<hr /> | |||
{% endif %} | |||
<div class="post-form"> | |||
neko259
|
r22 | <form enctype="multipart/form-data" method="post">{% csrf_token %} | |
neko259
|
r20 | {{ form.as_p }} | |
<input type="submit" value="Post!" /> | |||
</form> | |||
</div> | |||
neko259
|
r22 | {% endblock %} |