##// END OF EJS Templates
Added 'alt' attribute to the images to pass the validation. This fixes #2
Added 'alt' attribute to the images to pass the validation. This fixes #2

File last commit:

r82:06eb531e default
r82:06eb531e default
Show More
posting_general.html
164 lines | 6.0 KiB | text/html | HtmlLexer
/ templates / posting_general.html
Ilyas
Added admin loing possibility. Now it is abailable under {BASE_URL}/boards/login...
r9 {% 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 %}
emerge-ng
Improved page showing threads for certain tag. Also some fixes of dependency...
r74 {% if tag %}
<title>Neboard - {{ tag }}</title>
{% else %}
<title>Neboard</title>
{% endif %}
neko259
Fixed medadata design when an image is present. Added a method to determine if the tag is empty (has no attached threads).
r33 {% endblock %}
Ilyas
Added admin loing possibility. Now it is abailable under {BASE_URL}/boards/login...
r9 {% block content %}
emerge-ng
Improved page showing threads for certain tag. Also some fixes of dependency...
r74 {% if tag %}
neko259
Added form validation, added style for the tag panel. This fixes #13
r76 <div class="tag_info">
<h2>{% trans 'Tag: ' %}{{ tag }}</h2>
</div>
emerge-ng
Improved page showing threads for certain tag. Also some fixes of dependency...
r74 {% endif %}
neko259
#44 Show last replies in the threads list.
r59 {% if threads %}
{% for thread in threads %}
<div class="thread">
neko259
Compiling regexes for gets. #17 Added pagination. #28 Visually differing the dead (not bumpable) threads.
r46 {% if thread.can_bump %}
<div class="post">
{% else %}
neko259
#44 Show last replies in the threads list.
r59 <div class="post dead_post">
neko259
Compiling regexes for gets. #17 Added pagination. #28 Visually differing the dead (not bumpable) threads.
r46 {% endif %}
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 thread.image %}
neko259
Added new markdown field. Added gets algorithm with regexes.
r39 <div class="image">
neko259
Added js popup for image viewing.
r63 <a class="fancy"
neko259
Added 'alt' attribute to the images to pass the validation. This fixes #2
r82 href="{{ thread.image.url }}"><img
src="{{ thread.image.url_200x150 }}"
alt="{% trans 'Post image' %}" />
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 </a>
</div>
{% endif %}
neko259
Added new markdown field. Added gets algorithm with regexes.
r39 <div class="message">
neko259
#44 Show last replies in the threads list.
r59 <div class="post-info">
<span class="title">{{ thread.title }}</span>
<a class="post_id" href="{% url 'thread' thread.id %}">
(#{{ thread.id }})</a>
[{{ thread.pub_time }}]
[<a class="link" href="{% url 'thread' thread.id %}#form"
>{% trans "Reply" %}</a>]
</div>
neko259
Added new markdown field. Added gets algorithm with regexes.
r39 {% autoescape off %}
neko259
Truncate post texts by words preserving html tags, not just by chars.
r61 {{ thread.text.rendered|truncatewords_html:50 }}
neko259
Added new markdown field. Added gets algorithm with regexes.
r39 {% endautoescape %}
neko259
Fixed medadata design when an image is present. Added a method to determine if the tag is empty (has no attached threads).
r32 </div>
neko259
#44 Show last replies in the threads list.
r59 <div class="metadata">
{{ thread.get_reply_count }} {% trans 'replies' %},
{{ thread.get_images_count }} {% trans 'images' %}.
{% if thread.tags.all %}
<span class="tags">{% trans 'Tags' %}:
{% for tag in thread.tags.all %}
<a class="tag" href="
{% url 'tag' tag_name=tag.name %}">
{{ tag.name }}</a>
{% endfor %}
</span>
{% endif %}
</div>
</div>
{% if thread.get_last_replies %}
<div class="last-replies">
{% for post in thread.get_last_replies %}
{% if thread.can_bump %}
<div class="post">
{% else %}
<div class="post dead_post">
{% endif %}
{% if post.image %}
<div class="image">
neko259
Added js popup for image viewing.
r63 <a class="fancy"
neko259
Added 'alt' attribute to the images to pass the validation. This fixes #2
r82 href="{{ post.image.url }}"><img
src=" {{ post.image.url_200x150 }}"
alt="{% trans 'Post image' %}" />
neko259
#44 Show last replies in the threads list.
r59 </a>
</div>
{% endif %}
<div class="message">
<div class="post-info">
<span class="title">{{ post.title }}</span>
<a class="post_id" href="
{% url 'thread' thread.id %}#{{ post.id }}">
(#{{ post.id }})</a>
[{{ post.pub_time }}]
</div>
{% autoescape off %}
neko259
Truncate post texts by words preserving html tags, not just by chars.
r61 {{ post.text.rendered|truncatewords_html:50 }}
neko259
#44 Show last replies in the threads list.
r59 {% endautoescape %}
</div>
</div>
{% endfor %}
neko259
Added thread metadata (replies, images, gets) to the threads list.
r30 </div>
neko259
#44 Show last replies in the threads list.
r59 {% endif %}
</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 {% endfor %}
neko259
#44 Show last replies in the threads list.
r59 {% else %}
No threads found.
neko259
Added a text area to the posting form. Added a basic CSS style. Changed threads list a bit.
r16 <hr />
Ilyas
Added creating new thread form...
r14 {% endif %}
neko259
Changed themes.
r36 <form enctype="multipart/form-data" method="post">{% csrf_token %}
<div class="post-form-w">
Ilyas
Added django-simple-capthca support...
r78
neko259
Changed themes.
r36 <div class="form-title">{% trans "Create new thread" %}</div>
<div class="post-form">
neko259
Fixed captcha design. Added setting to enable or disable captcha. This refs #39
r81 <div class="form-row">
<div class="form-label">{% trans 'Title' %}</div>
<div class="form-input">{{ form.title }}</div>
<div class="form-errors">{{ form.title.errors }}</div>
</div>
<div class="form-row">
<div class="form-label">{% trans 'Text' %}</div>
<div class="form-input">{{ form.text }}</div>
<div class="form-errors">{{ form.text.errors }}</div>
</div>
<div class="form-row">
<div class="form-label">{% trans 'Image' %}</div>
<div class="form-input">{{ form.image }}</div>
<div class="form-errors">{{ form.image.errors }}</div>
</div>
<div class="form-row">
<div class="form-label">{% trans 'Tags' %}</div>
<div class="form-input">{{ form.tags }}</div>
<div class="form-errors">{{ form.tags.errors }}</div>
</div>
<div class="form-row">
{{ form.captcha }}
</div>
Ilyas
Added checkinf form fields when creating a new thread.
r18 </div>
Ilyas
Added django-simple-capthca support...
r78 <div class="form-submit">
<input type="submit" value="{% trans "Post" %}"/></div>
neko259
Changed themes.
r36 <div>Tags must be delimited by spaces. Text or image is required
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>Use <a
href="http://daringfireball.net/projects/markdown/basics">
markdown</a> syntax for posting.</div>
neko259
Added a text area to the posting form. Added a basic CSS style. Changed threads list a bit.
r16 </div>
neko259
Changed themes.
r36 </form>
Ilyas
Added admin loing possibility. Now it is abailable under {BASE_URL}/boards/login...
r9
{% endblock %}
neko259
#29 Added a thread title to the page title. #31 Added a panel to the page bottom.
r44 {% block metapanel %}
<span class="metapanel">
neko259
Made the project name in footer appear as a link to the repository.
r60 <b><a href="https://bitbucket.org/neko259/neboard/">Neboard</a>
2013-05 (dev)</b>
neko259
Compiling regexes for gets. #17 Added pagination. #28 Visually differing the dead (not bumpable) threads.
r46 {% trans "Pages:" %}
{% for page in pages %}
[<a href="
{% if tag %}
{% url "tag" tag_name=tag page=page %}
{% else %}
{% url "index" page=page %}
{% endif %}
">{{ page }}</a>]
{% endfor %}
neko259
#29 Added a thread title to the page title. #31 Added a panel to the page bottom.
r44 </span>
emerge-ng
Improved page showing threads for certain tag. Also some fixes of dependency...
r74 {% endblock %}