##// END OF EJS Templates
Limit number of tags shown in the navigation bar to only the most popular ones.
Limit number of tags shown in the navigation bar to only the most popular ones.

File last commit:

r57:dcbc67f3 default
r57:dcbc67f3 default
Show More
posting_general.html
106 lines | 3.6 KiB | text/html | HtmlLexer
{% extends "base.html" %}
{% load i18n %}
{% load markup %}
{% block head %}
<title>Neboard</title>
{% endblock %}
{% block content %}
{% if threads %}
{% for thread in threads %}
{% if thread.can_bump %}
<div class="post">
{% else %}
<div class="dead_post">
{% endif %}
{% if thread.image %}
<div class="image">
<a href="{{ thread.image.url }}"><img
src="{{ thread.image.url_200x150 }}" />
</a>
</div>
{% endif %}
<div class="message">
<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>]
{% autoescape off %}
{{ thread.text.rendered|truncatechars:300 }}
{% endautoescape %}
</div>
<div class="metadata">
{% 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 %},
{{ thread.get_reply_count }} {% trans 'replies' %},
{{ thread.get_images_count }} {% trans 'images' %}.
{% trans 'Last update: ' %}{{ thread.last_edit_time }}
</div>
</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 "Create new 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 class="form-row">
<div class="form-label">{% trans 'Tags' %}</div>
<div class="form-input">{{ form.tags }}</div>
</div>
</div>
<div class="form-submit"><input type="submit"
value="{% trans "Post" %}"/></div>
<div>Tags must be delimited by spaces. Text or image is required
</div>
<div>Use <a
href="http://daringfireball.net/projects/markdown/basics">
markdown</a> syntax for posting.</div>
</div>
</form>
{% endblock %}
{% block metapanel %}
<span class="metapanel">
<b>Neboard 2013-05 (dev)</b>
{% 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 %}
</span>
{% endblock %}