##// END OF EJS Templates
Added license text.
Added license text.

File last commit:

r22:2fc818b6 default
r23:8653b542 default
Show More
thread.html
32 lines | 878 B | text/html | HtmlLexer
neko259
Added a page to view the thread.
r20 {% extends "base.html" %}
{% block content %}
{% if posts %}
{% for post in posts %}
neko259
Added images upload. Changed the design a bit. Reformatted some code by PEP 8. Changed the urls: not the main site is located at /, not /boards/.
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
Added a page to view the thread.
r20 <hr />
{% endfor %}
{% else %}
No threads found.
<hr />
{% endif %}
<div class="post-form">
neko259
Added images upload. Changed the design a bit. Reformatted some code by PEP 8. Changed the urls: not the main site is located at /, not /boards/.
r22 <form enctype="multipart/form-data" method="post">{% csrf_token %}
neko259
Added a page to view the thread.
r20 {{ form.as_p }}
<input type="submit" value="Post!" />
</form>
</div>
neko259
Added images upload. Changed the design a bit. Reformatted some code by PEP 8. Changed the urls: not the main site is located at /, not /boards/.
r22 {% endblock %}