thread.html
76 lines
| 2.6 KiB
| text/html
|
HtmlLexer
/ templates / thread.html
|
r20 | {% extends "base.html" %} | ||
|
r24 | {% load i18n %} | ||
|
r36 | {% load markup %} | ||
|
r24 | |||
|
r33 | {% block head %} | ||
<title>Neboard</title> | ||||
{% endblock %} | ||||
|
r20 | {% block content %} | ||
{% if posts %} | ||||
{% for post in posts %} | ||||
|
r30 | <a name="{{ post.id }}"></a> | ||
|
r28 | <div class="post"> | ||
|
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> | ||||
|
r30 | <a class="post_id" href="#{{ post.id }}"> | ||
(#{{ post.id }})</a> | ||||
|
r36 | [{{ post.pub_time }}] | ||
|
r39 | {% autoescape off %} | ||
{{ post.text.rendered }} | ||||
{% endautoescape %} | ||||
|
r22 | </div> | ||
|
r32 | {% if post.tags.all %} | ||
<div class="metadata"> | ||||
<span class="tags">{% trans 'Tags' %}: | ||||
{% for tag in post.tags.all %} | ||||
<a class="tag" href="{% url 'tag' tag.name %}"> | ||||
{{ tag.name }}</a> | ||||
{% endfor %} | ||||
</span> | ||||
</div> | ||||
{% endif %} | ||||
|
r28 | </div> | ||
|
r20 | {% endfor %} | ||
{% else %} | ||||
No threads found. | ||||
<hr /> | ||||
{% endif %} | ||||
|
r36 | <form enctype="multipart/form-data" method="post">{% csrf_token %} | ||
<div class="post-form-w"> | ||||
|
r38 | <div class="form-title">{% trans "Reply to thread" %}</div> | ||
|
r36 | <div class="post-form"> | ||
<div class="form-row"> | ||||
<div class="form-label">{% trans 'Title' %}</div> | ||||
<div class="form-input">{{ form.title }}</div> | ||||
</div> | ||||
<div class="form-row"> | ||||
<div class="form-label">{% trans 'Text' %}</div> | ||||
<div class="form-input">{{ form.text }}</div> | ||||
</div> | ||||
<div class="form-row"> | ||||
<div class="form-label">{% trans 'Image' %}</div> | ||||
<div class="form-input">{{ form.image }}</div> | ||||
</div> | ||||
|
r28 | </div> | ||
|
r36 | <div class="form-submit"><input type="submit" | ||
value="{% trans "Post" %}"/></div> | ||||
<div>Use <a | ||||
href="http://daringfireball.net/projects/markdown/basics"> | ||||
markdown</a> syntax for posting.</div> | ||||
<div>Example: *<i>italic</i>*, **<b>bold</b>**</div> | ||||
<div>Insert quotes with ">"</div> | ||||
</div> | ||||
</form> | ||||
|
r20 | |||
|
r38 | {% endblock %} | ||