##// END OF EJS Templates
Fixed threads list RSS
Fixed threads list RSS

File last commit:

r398:b2448061 default
r419:4e6774d5 default
Show More
post.html
68 lines | 2.1 KiB | text/html | HtmlLexer
{% load i18n %}
{% load board %}
{% if can_bump %}
<div class="post" id="{{ post.id }}">
{% else %}
<div class="post dead_post" id="{{ post.id }}">
{% endif %}
{% if post.image %}
<div class="image">
<a
class="thumb"
href="{{ post.image.url }}"><img
src="{{ post.image.url_200x150 }}"
alt="{{ post.id }}"
data-width="{{ post.image_width }}"
data-height="{{ post.image_height }}"/>
</a>
</div>
{% endif %}
<div class="message">
<div class="post-info">
<span class="title">{{ post.title }}</span>
<a class="post_id" href="#{{ post.id }}">
({{ post.id }})</a>
[{{ post.pub_time }}]
[<a href="#" onclick="javascript:addQuickReply('{{ post.id }}')
; return false;">&gt;&gt;</a>]
{% if moderator %}
<span class="moderator_info">
[<a href="{% url 'delete' post_id=post.id %}"
>{% trans 'Delete' %}</a>]
({{ post.poster_ip }})
[<a href="{% url 'ban' post_id=post.id %}?next={{ request.path }}"
>{% trans 'Ban IP' %}</a>]
</span>
{% endif %}
</div>
{% autoescape off %}
{% if truncated %}
{{ post.text.rendered|truncatewords_html:50 }}
{% else %}
{{ post.text.rendered }}
{% endif %}
{% endautoescape %}
{% if post.is_referenced %}
<div class="refmap">
{% trans "Replies" %}:
{% for ref_post in post.get_sorted_referenced_posts %}
<a href="{% post_url ref_post.id %}">&gt;&gt;{{ ref_post.id }}</a
>{% if not forloop.last %},{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
{% if post.thread.tags.exists %}
<div class="metadata">
<span class="tags">{% trans 'Tags' %}:
{% for tag in post.thread.get_tags %}
<a class="tag" href="{% url 'tag' tag.name %}">
{{ tag.name }}</a>
{% endfor %}
</span>
</div>
{% endif %}
</div>