##// END OF EJS Templates
Added new markdown field. Added gets algorithm with regexes.
Added new markdown field. Added gets algorithm with regexes.

File last commit:

r39:e544cbe2 default
r39:e544cbe2 default
Show More
thread.html
76 lines | 2.6 KiB | text/html | HtmlLexer
neko259
Added a page to view the thread.
r20 {% extends "base.html" %}
neko259
Added localization (not fully working). Added tags posting. Changed the design a bit.
r24 {% load i18n %}
neko259
Changed themes.
r36 {% load markup %}
neko259
Added localization (not fully working). Added tags posting. Changed the design a bit.
r24
neko259
Fixed medadata design when an image is present. Added a method to determine if the tag is empty (has no attached threads).
r33 {% block head %}
<title>Neboard</title>
{% endblock %}
neko259
Added a page to view the thread.
r20 {% block content %}
{% if posts %}
{% for post in posts %}
neko259
Added thread metadata (replies, images, gets) to the threads list.
r30 <a name="{{ post.id }}"></a>
neko259
Added maximum threads count parameter to the settings. Delete the old posts to preserve the max count. Small design tweaks.
r28 <div class="post">
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>
neko259
Added thread metadata (replies, images, gets) to the threads list.
r30 <a class="post_id" href="#{{ post.id }}">
(#{{ post.id }})</a>
neko259
Changed themes.
r36 [{{ post.pub_time }}]
neko259
Added new markdown field. Added gets algorithm with regexes.
r39 {% autoescape off %}
{{ post.text.rendered }}
{% endautoescape %}
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 </div>
neko259
Fixed medadata design when an image is present. Added a method to determine if the tag is empty (has no attached threads).
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 %}
neko259
Added maximum threads count parameter to the settings. Delete the old posts to preserve the max count. Small design tweaks.
r28 </div>
neko259
Added a page to view the thread.
r20 {% endfor %}
{% else %}
No threads found.
<hr />
{% endif %}
neko259
Changed themes.
r36 <form enctype="multipart/form-data" method="post">{% csrf_token %}
<div class="post-form-w">
neko259
Implemented bumplimit.
r38 <div class="form-title">{% trans "Reply to thread" %}</div>
neko259
Changed themes.
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>
neko259
Added maximum threads count parameter to the settings. Delete the old posts to preserve the max count. Small design tweaks.
r28 </div>
neko259
Changed themes.
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 "&gt;"</div>
</div>
</form>
neko259
Added a page to view the thread.
r20
neko259
Implemented bumplimit.
r38 {% endblock %}