2011-10-05 08:53:43 -04:00
|
|
|
{% filter remove_whitespace %}
|
|
|
|
{# tabs and new lines will be ignored #}
|
|
|
|
|
2011-11-16 04:41:16 -05:00
|
|
|
{% if index %}
|
2011-11-16 23:24:39 -05:00
|
|
|
<div id="thread_{{ post.id }}" itemscope itemid="/{{ board.uri }}/{{ post.id }}" itemtype="http://schema.org/Article">
|
2011-11-16 04:41:16 -05:00
|
|
|
{% endif %}
|
|
|
|
|
2011-10-05 08:53:43 -04:00
|
|
|
{% if post.embed %}
|
|
|
|
{{ post.embed }}
|
|
|
|
{% elseif post.file == 'deleted' %}
|
2011-11-16 04:41:16 -05:00
|
|
|
<img itemprop="image" src="{{ config.image_deleted }}" alt="" />
|
2011-10-05 08:53:43 -04:00
|
|
|
{% elseif post.file and post.file %}
|
|
|
|
<p class="fileinfo">File: <a href="{{ config.uri_img }}{{ post.file }}">{{ post.file }}</a> <span class="unimportant">
|
|
|
|
(
|
|
|
|
{% if post.thumb == 'spoiler' %}
|
|
|
|
Spoiler Image,
|
|
|
|
{% endif %}
|
|
|
|
{{ post.filesize|filesize }}
|
|
|
|
{% if post.filex and post.filey %}
|
|
|
|
, {{ post.filex}}x{{ post.filey }}
|
|
|
|
{% if config.show_ratio %}
|
|
|
|
, {{ post.ratio }}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% if config.show_filename %}
|
|
|
|
,
|
|
|
|
{% if post.filename|length > config.max_filename_display %}
|
|
|
|
<span title="{{ post.filename }}">{{ post.filename|truncate(config.max_filename_display) }}</span>
|
|
|
|
{% else %}
|
|
|
|
{{ post.filename }}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
)
|
|
|
|
</span></p>
|
|
|
|
<a href="{{ config.uri_img }}{{ post.file }}" target="_blank"{% if this.thumb == 'file' %} class="file"{% endif %}>
|
|
|
|
<img src="
|
|
|
|
{% if post.thumb == 'file' %}
|
|
|
|
{{ config.root }}
|
|
|
|
{% if config.file_icons[post.filename|extension] %}
|
|
|
|
{{ config.file_thumb|sprintf(config.file_icons[post.filename|extension]) }}
|
|
|
|
{% else %}
|
|
|
|
{{ config.file_thumb|sprintf(config.file_icons.default) }}
|
|
|
|
{% endif %}
|
|
|
|
{% elseif post.thumb == 'spoiler' %}
|
|
|
|
{{ config.root }}{{ config.spoiler_image }}
|
|
|
|
{% else %}
|
|
|
|
{{ config.uri_thumb }}{{ post.thumb }}
|
|
|
|
{% endif %}" style="width:{{ post.thumbx }}px;height:{{ post.thumby }}px" alt="" /></a>
|
|
|
|
{% endif %}
|
2011-11-16 23:24:39 -05:00
|
|
|
<div class="post op"{% if not index %} itemscope itemid="/{{ board.uri }}/{{ post.id }}" itemtype="http://schema.org/Article"{% endif %}><p class="intro"{% if not index %} id="{{ post.id }}"{% endif %}>
|
2011-10-05 08:53:43 -04:00
|
|
|
<input type="checkbox" class="delete" name="delete_{{ post.id }}" id="delete_{{ post.id }}" />
|
|
|
|
<label for="delete_{{ post.id }}">
|
|
|
|
{% if post.subject|length > 0 %}
|
|
|
|
{# show subject #}
|
2011-11-16 23:32:22 -05:00
|
|
|
<span itemprop="headline" class="subject">{{ post.subject }}</span>
|
2011-10-05 08:53:43 -04:00
|
|
|
{% endif %}
|
|
|
|
{% if post.email|length > 0 %}
|
|
|
|
{# start email #}
|
2011-11-16 04:49:01 -05:00
|
|
|
<a class="email" href="mailto:{{ post.email }}">
|
2011-10-05 08:53:43 -04:00
|
|
|
{% endif %}
|
2011-11-16 15:54:16 -05:00
|
|
|
<span class="name">{{ post.name }}</span>
|
2011-10-05 08:53:43 -04:00
|
|
|
{% if post.trip|length > 0 %}
|
|
|
|
<span class="trip">{{ post.trip }}</span>
|
|
|
|
{% endif %}
|
|
|
|
{% if post.email|length > 0 %}
|
|
|
|
{# end email #}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if post.capcode|length > 0 %}
|
|
|
|
{# show capcode #}
|
|
|
|
{{ post.capcode|capcode }}
|
|
|
|
{% endif %}
|
|
|
|
{% if post.mod and post.mod|hasPermission(config.mod.show_ip, board.uri) %}
|
|
|
|
[<a style="margin:0;" href="?/IP/{{ post.ip }}">{{ post.ip }}</a>]
|
|
|
|
{% endif %}
|
2011-11-16 23:29:36 -05:00
|
|
|
<time itemprop="dateCreated" datetime="{{ post.time|date('c') }}">{{ post.time|date(config.post_date) }}</time>
|
2011-10-05 08:53:43 -04:00
|
|
|
</label>
|
|
|
|
{% if config.poster_ids %}
|
|
|
|
ID: {{ post.ip|poster_id(post.id) }}
|
|
|
|
{% endif %}
|
2011-11-16 23:24:39 -05:00
|
|
|
<a itemprop="url" class="post_no" href="{{ post.link }}">No.</a>
|
2011-10-05 08:53:43 -04:00
|
|
|
<a class="post_no"
|
|
|
|
{% if not index %}
|
|
|
|
onclick="citeReply({{ post.id }});"
|
|
|
|
{% endif %}
|
|
|
|
href="{% if index %}
|
|
|
|
{{ post.link('q') }}
|
|
|
|
{% else %}
|
|
|
|
javascript:void(0);
|
|
|
|
{% endif %}">
|
|
|
|
{{ post.id }}
|
|
|
|
</a>
|
|
|
|
{% if post.sticky %}
|
|
|
|
<img class="icon" title="Sticky" src="{{ config.image_sticky }}" alt="Sticky" />
|
|
|
|
{% endif %}
|
|
|
|
{% if post.locked %}
|
|
|
|
<img class="icon" title="Locked" src="{{ config.image_locked }}" alt="Locked" />
|
|
|
|
{% endif %}
|
2011-10-10 07:37:39 -04:00
|
|
|
{% if post.bumplocked and (config.mod.view_bumplock < 0 or (post.mod and post.mod|hasPermission(config.mod.view_bumplock, board.uri))) %}
|
|
|
|
<img class="icon" title="Bumplocked" src="{{ config.image_bumplocked }}" alt="Locked" />
|
|
|
|
{% endif %}
|
2011-10-05 08:53:43 -04:00
|
|
|
{% if index %}
|
2011-11-16 23:24:39 -05:00
|
|
|
<a itemprop="discussionUrl" href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ config.file_page|sprintf(post.id) }}">[{% trans %}Reply{% endtrans %}]</a>
|
2011-10-05 08:53:43 -04:00
|
|
|
{% endif %}
|
|
|
|
{{ post.postControls }}
|
2011-10-07 05:15:57 -04:00
|
|
|
</p>
|
2011-11-16 23:24:39 -05:00
|
|
|
<p itemprop="articleBody" class="body">
|
2011-10-05 08:53:43 -04:00
|
|
|
{% endfilter %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% filter remove_whitespace %}
|
|
|
|
</p>
|
|
|
|
{% if post.omitted or post.omitted_images %}
|
|
|
|
<span class="omitted">
|
|
|
|
{% if post.omitted %}
|
|
|
|
{{ post.omitted }} post
|
|
|
|
{% if post.omitted != 1 %}
|
|
|
|
s
|
|
|
|
{% endif %}
|
|
|
|
{% if post.omitted_images %}
|
|
|
|
and
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% if post.omitted_images %}
|
|
|
|
{{ post.omitted_images }} image repl
|
|
|
|
{% if post.omitted_images == 1 %}
|
|
|
|
y
|
|
|
|
{% else %}
|
|
|
|
ies
|
|
|
|
{% endif %}
|
|
|
|
{% endif %} omitted. Click reply to view.
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
2011-11-16 23:32:22 -05:00
|
|
|
<meta itemprop="articleSection" content="{{ board.uri }}" />
|
2011-11-16 23:24:39 -05:00
|
|
|
{% if not index %}
|
|
|
|
<meta itemprop="interactionCount" content="UserComments:{{ post.posts|count }}" />
|
|
|
|
{% endif %}
|
2011-10-05 08:53:43 -04:00
|
|
|
</div>{% endfilter %}
|
2011-10-05 09:42:27 -04:00
|
|
|
{% set hr = post.hr %}
|
2011-10-05 08:53:43 -04:00
|
|
|
{% for post in post.posts %}
|
|
|
|
{% include 'post_reply.html' %}
|
|
|
|
{% endfor %}
|
2011-10-05 09:42:27 -04:00
|
|
|
<br class="clear"/>{% if hr %}<hr/>{% endif %}
|
2011-11-16 04:41:16 -05:00
|
|
|
{% if index %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|