##// END OF EJS Templates
Fixed medadata design when an image is present. Added a method to determine if the tag is empty (has no attached threads).
Fixed medadata design when an image is present. Added a method to determine if the tag is empty (has no attached threads).

File last commit:

r33:45bad15a default
r33:45bad15a default
Show More
posting_general.html
75 lines | 2.8 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
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 %}
Ilyas
Added admin loing possibility. Now it is abailable under {BASE_URL}/boards/login...
r9 {% block content %}
Ilyas
Added creating new thread form...
r14 {% if threads %}
{% for thread in threads %}
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 thread.image %}
<div class="block">
<a href="{{ thread.image.url }}"><img
src="{{ thread.image.url_200x150 }}" />
</a>
</div>
{% endif %}
<div class="block">
<span class="title">{{ thread.title }}</span>
neko259
Added post publication date to the templates.
r26 <span class="post_id">(#{{ thread.id }})</span>
[{{ thread.pub_time }}]
neko259
Changed metadata design. Make space split tags.
r31 [<a class="link" href="{% url 'thread' thread.id %}"
>{% trans "View" %}</a>]<br />
{{ thread.get_parsed_text|linebreaksbr|truncatechars:300 }}<br
/>
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
Added thread metadata (replies, images, gets) to the threads list.
r30 <div class="metadata">
neko259
Changed metadata design. Make space split tags.
r31 {{ thread.get_reply_count }} {% trans 'replies' %},
neko259
Added thread metadata (replies, images, gets) to the threads list.
r30 {{ thread.get_images_count }} {% trans 'images' %},
neko259
Changed metadata design. Make space split tags.
r31 {{ thread.get_gets_count }} {% trans 'gets' %}.
neko259
Added thread metadata (replies, images, gets) to the threads list.
r30 {% if thread.tags.all %}
<span class="tags">{% trans 'Tags' %}:
{% for tag in thread.tags.all %}
neko259
Changed metadata design. Make space split tags.
r31 <a class="tag" href="
{% url 'tag' tag_name=tag.name %}">
neko259
Added thread metadata (replies, images, gets) to the threads list.
r30 {{ tag.name }}</a>
{% endfor %}
</span>
{% 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 </div>
{% endfor %}
Ilyas
Added creating new thread form...
r14 {% else %}
neko259
Added localization (not fully working). Added tags posting. Changed the design a bit.
r24 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
Added a text area to the posting form. Added a basic CSS style. Changed threads list a bit.
r16 <div class="post-form">
neko259
Added maximum threads count parameter to the settings. Delete the old posts to preserve the max count. Small design tweaks.
r28 <span class="form-title">{% trans "Create new thread" %}</span>
<form enctype="multipart/form-data" method="post">{% csrf_token %}
<div class="form-row">
<div class="form-input">{% trans 'Title' %}</div>
<div class="form-input">{{ form.title }}</div>
</div>
<div class="form-row">
<div class="form-input">{% trans 'Text' %}</div>
<div class="form-input">{{ form.text }}</div>
</div>
<div class="form-row">
<div class="form-input">{% trans 'Image' %}</div>
<div class="form-input">{{ form.image }}</div>
</div>
<div class="form-row">
<div class="form-input">{% trans 'Tags' %}</div>
<div class="form-input">{{ form.tags }}</div>
</div>
<input type="submit" value="{% trans 'Post' %}" />
neko259
Changed metadata design. Make space split tags.
r31 <hr />
{% trans "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 </form>
neko259
Added a text area to the posting form. Added a basic CSS style. Changed threads list a bit.
r16 </div>
Ilyas
Added creating new thread form...
r14
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 %}