##// END OF EJS Templates
Updated the Snow White theme. Scroll to the new post after posting to thread.
Updated the Snow White theme. Scroll to the new post after posting to thread.

File last commit:

r41:68192446 default
r41:68192446 default
Show More
thread.html
76 lines | 2.6 KiB | text/html | HtmlLexer
{% extends "base.html" %}
{% load i18n %}
{% load markup %}
{% block head %}
<title>Neboard</title>
{% endblock %}
{% block content %}
{% if posts %}
{% for post in posts %}
<a name="{{ post.id }}"></a>
<div class="post">
{% if post.image %}
<div class="image">
<a href="{{ post.image.url }}"><img
src="{{ post.image.url_200x150 }}" />
</a>
</div>
{% endif %}
<div class="message">
<span class="title">{{ post.title }}</span>
<a class="post_id" href="#{{ post.id }}">
(#{{ post.id }})</a>
[{{ post.pub_time }}]
{% autoescape off %}
{{ post.text.rendered }}
{% endautoescape %}
</div>
{% 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 %}
</div>
{% endfor %}
{% else %}
No threads found.
<hr />
{% endif %}
<form enctype="multipart/form-data" method="post">{% csrf_token %}
<div class="post-form-w">
<div class="form-title">{% trans "Reply to thread" %}</div>
<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>
</div>
<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 "&gt;"</div>
</div>
</form>
{% endblock %}