2013-06-24 08:44:19 -04:00
|
|
|
{% filter remove_whitespace %}
|
|
|
|
{# tabs and new lines will be ignored #}
|
|
|
|
|
2013-06-24 08:46:59 -04:00
|
|
|
<div id="thread_{{ post.id }}" data-board="{{ board.uri }}">
|
2013-06-24 08:44:19 -04:00
|
|
|
|
|
|
|
{% if post.embed %}
|
|
|
|
{{ post.embed }}
|
|
|
|
{% elseif post.file == 'deleted' %}
|
2013-08-16 07:08:01 -04:00
|
|
|
<img class="post-image deleted" src="{{ config.image_deleted }}" alt="" />
|
2013-06-24 08:44:19 -04:00
|
|
|
{% elseif post.file and post.file %}
|
|
|
|
<p class="fileinfo">{% trans %}File:{% endtrans %} <a href="{{ config.uri_img }}{{ post.file }}">{{ post.file }}</a> <span class="unimportant">
|
|
|
|
(
|
|
|
|
{% if post.thumb == 'spoiler' %}
|
|
|
|
{% trans %}Spoiler Image{% endtrans %},
|
|
|
|
{% endif %}
|
|
|
|
{{ post.filesize|filesize }}
|
2013-08-16 14:07:32 -04:00
|
|
|
{% if post.filewidth and post.fileheight %}
|
|
|
|
, {{ post.filewidth}}x{{ post.fileheight }}
|
2013-06-24 08:44:19 -04:00
|
|
|
{% if config.show_ratio %}
|
|
|
|
, {{ post.ratio }}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% if config.show_filename and post.filename %}
|
|
|
|
,
|
|
|
|
{% if post.filename|length > config.max_filename_display %}
|
2013-08-18 15:19:54 -04:00
|
|
|
<span class="postfilename" title="{{ post.filename|e }}">{{ post.filename|truncate(config.max_filename_display)|bidi_cleanup }}</span>
|
2013-06-24 08:44:19 -04:00
|
|
|
{% else %}
|
2013-07-31 16:38:09 -04:00
|
|
|
<span class="postfilename">{{ post.filename|e|bidi_cleanup }}</span>
|
2013-06-24 08:44:19 -04:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% if post.thumb != 'file' and config.image_identification %}
|
|
|
|
,
|
|
|
|
<span class='image_id'>
|
|
|
|
<a href="http://imgops.com/{{ config.domain }}{{ config.uri_img }}{{ post.file }}">io</a>
|
|
|
|
{% if post.file|extension == 'jpg' %}
|
|
|
|
<a href="http://regex.info/exif.cgi?url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">e</a>
|
|
|
|
{% endif %}
|
|
|
|
<a href="http://www.google.com/searchbyimage?image_url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">g</a>
|
|
|
|
<a href="http://www.tineye.com/search?url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">t</a>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
)
|
|
|
|
</span></p>
|
2013-08-18 04:17:12 -04:00
|
|
|
<a href="{{ config.uri_img }}{{ post.file }}" target="_blank"{% if post.thumb == 'file' or post.modifiers['is_file'] == '1' %} class="file"{% endif %}>
|
2013-08-16 07:08:01 -04:00
|
|
|
<img class="post-image" src="
|
2013-06-24 08:44:19 -04:00
|
|
|
{% 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 }}
|
2013-08-16 09:25:32 -04:00
|
|
|
{% endif %}" style="width:{{ post.thumbwidth }}px;height:{{ post.thumbheight }}px" alt="" /></a>
|
2013-06-24 08:44:19 -04:00
|
|
|
{% endif %}
|
|
|
|
<div class="post op"><p class="intro"{% if not index %} id="{{ post.id }}"{% endif %}>
|
|
|
|
<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 #}
|
|
|
|
<span class="subject">{{ post.subject|bidi_cleanup }}</span>
|
|
|
|
{% endif %}
|
|
|
|
{% if post.email|length > 0 %}
|
|
|
|
{# start email #}
|
|
|
|
<a class="email" href="mailto:{{ post.email }}">
|
|
|
|
{% endif %}
|
|
|
|
{% set capcode = post.capcode|capcode %}
|
|
|
|
<span {% if capcode.name %}style="{{ capcode.name }}" {% endif %}class="name">{{ post.name|bidi_cleanup }}</span>
|
|
|
|
{% if post.trip|length > 0 %}
|
|
|
|
<span {% if capcode.trip %}style="{{ capcode.trip }}" {% endif %}class="trip">{{ post.trip }}</span>
|
|
|
|
{% endif %}
|
|
|
|
{% if post.email|length > 0 %}
|
|
|
|
{# end email #}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if capcode %}
|
|
|
|
{{ capcode.cap }}
|
|
|
|
{% endif %}
|
|
|
|
{% if post.mod and post.mod|hasPermission(config.mod.show_ip, board.uri) %}
|
2013-08-19 09:47:56 -04:00
|
|
|
[<a class="ip-link" style="margin:0;" href="?/IP/{{ post.ip }}">{{ post.ip }}</a>]
|
2013-06-24 08:44:19 -04:00
|
|
|
{% endif %}
|
2013-08-16 08:12:25 -04:00
|
|
|
{% if config.display_flags and post.modifiers.flag %}
|
2013-08-16 09:12:40 -04:00
|
|
|
<img class="flag" src="{{ config.uri_flags|sprintf(post.modifiers.flag) }}"
|
|
|
|
style="{% if post.modifiers['flag style'] %}{{ post.modifiers['flag style'] }}{% else %}{{ config.flag_style }}{% endif %}"
|
2013-08-19 06:31:15 -04:00
|
|
|
{% if post.modifiers['flag alt'] %}alt="{{ post.modifiers['flag alt'] | e('html_attr') }}" title="{{ post.modifiers['flag alt'] | e('html_attr') }}"{% endif %}>
|
2013-08-16 07:25:56 -04:00
|
|
|
{% endif %}
|
2013-06-24 08:44:19 -04:00
|
|
|
<time datetime="{{ post.time|date('%Y-%m-%dT%H:%M:%S') }}{{ timezone() }}">{{ post.time|date(config.post_date) }}</time>
|
|
|
|
</label>
|
|
|
|
{% if config.poster_ids %}
|
|
|
|
ID: {{ post.ip|poster_id(post.id) }}
|
|
|
|
{% endif %}
|
2013-12-25 08:23:16 -05:00
|
|
|
<a class="post_no" onclick="return document.querySelectorAll('div.banner').length ? highlightReply({{ post.id }}) : true;" href="{{ post.link }}">No.</a>
|
|
|
|
<a class="post_no" onclick="return document.querySelectorAll('div.banner').length ? citeReply({{ post.id }}) : true;" href="{{ post.link('q') }}">
|
|
|
|
{{ post.id }}
|
|
|
|
</a>
|
2013-07-23 09:38:42 -04:00
|
|
|
{% if post.sticky %}
|
|
|
|
{% if config.font_awesome %}
|
2014-01-14 16:29:40 -05:00
|
|
|
<i class="fa fa-thumb-tack"></i>
|
2013-07-31 04:28:26 -04:00
|
|
|
{% else %}
|
2013-07-23 09:38:42 -04:00
|
|
|
<img class="icon" title="Sticky" src="{{ config.image_sticky }}" alt="Sticky" />
|
2013-07-31 04:28:26 -04:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2013-07-23 09:38:42 -04:00
|
|
|
{% if post.locked %}
|
|
|
|
{% if config.font_awesome %}
|
2014-01-14 16:29:40 -05:00
|
|
|
<i class="fa fa-lock"></i>
|
2013-07-31 04:28:26 -04:00
|
|
|
{% else %}
|
2013-07-23 09:38:42 -04:00
|
|
|
<img class="icon" title="Locked" src="{{ config.image_locked }}" alt="Locked" />
|
2013-07-31 04:28:26 -04:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2013-07-23 09:38:42 -04:00
|
|
|
{% if post.bumplocked and (config.mod.view_bumplock < 0 or (post.mod and post.mod|hasPermission(config.mod.view_bumplock, board.uri))) %}
|
|
|
|
{% if config.font_awesome %}
|
2014-01-14 16:29:40 -05:00
|
|
|
<i class="fa fa-anchor"></i>
|
2013-07-31 04:28:26 -04:00
|
|
|
{% else %}
|
2013-07-23 09:38:42 -04:00
|
|
|
<img class="icon" title="Bumplocked" src="{{ config.image_bumplocked }}" alt="Bumplocked" />
|
2013-07-31 04:28:26 -04:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2013-06-24 08:44:19 -04:00
|
|
|
{% if index %}
|
2013-08-11 17:52:35 -04:00
|
|
|
<a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ config.file_page|sprintf(post.id) }}">[{% trans %}Reply{% endtrans %}]</a>
|
2013-08-10 17:16:30 -04:00
|
|
|
{% endif %}
|
|
|
|
{% if isnoko50 %}
|
|
|
|
<a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ config.file_page|sprintf(post.id) }}">[{% trans %}View All{% endtrans %}]</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if hasnoko50 and not isnoko50 %}
|
|
|
|
{% set lastcount = config.noko50_count %}
|
2013-08-11 17:52:35 -04:00
|
|
|
<a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ config.file_page50|sprintf(post.id) }}">[{% trans %}Last 1 Post{% plural lastcount %}Last {{ count }} Posts{% endtrans %}]</a>
|
2013-06-24 08:44:19 -04:00
|
|
|
{% endif %}
|
|
|
|
{{ post.postControls }}
|
|
|
|
</p>
|
|
|
|
<div class="body">
|
|
|
|
{% endfilter %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% filter remove_whitespace %}
|
2013-08-16 07:25:56 -04:00
|
|
|
{% if post.modifiers['ban message'] %}
|
|
|
|
{{ config.mod.ban_message|sprintf(post.modifiers['ban message']) }}
|
|
|
|
{% endif %}
|
2013-06-24 08:44:19 -04:00
|
|
|
</div>
|
|
|
|
{% if post.omitted or post.omitted_images %}
|
|
|
|
<span class="omitted">
|
|
|
|
{% if post.omitted %}
|
|
|
|
{% trans %}
|
|
|
|
1 post
|
|
|
|
{% plural post.omitted %}
|
|
|
|
{{ count }} posts
|
|
|
|
{% endtrans %}
|
|
|
|
{% if post.omitted_images %}
|
|
|
|
{% trans %}and{% endtrans %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% if post.omitted_images %}
|
|
|
|
{% trans %}
|
|
|
|
1 image reply
|
|
|
|
{% plural post.omitted_images %}
|
|
|
|
{{ count }} image replies
|
|
|
|
{% endtrans %}
|
2013-08-11 17:52:35 -04:00
|
|
|
{% endif %} {% trans %}omitted. Click reply to view.{% endtrans %}
|
2013-06-24 08:44:19 -04:00
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
{% if not index %}
|
|
|
|
{% endif %}
|
|
|
|
</div>{% endfilter %}
|
|
|
|
{% set hr = post.hr %}
|
|
|
|
{% for post in post.posts %}
|
|
|
|
{% include 'post_reply.html' %}
|
|
|
|
{% endfor %}
|
|
|
|
<br class="clear"/>{% if hr %}<hr/>{% endif %}
|
|
|
|
</div>
|