templates/post_thread.html: changed windows-type endlines to unix-type

This commit is contained in:
czaks
2013-06-24 08:44:19 -04:00
parent 3bcf88e842
commit da57f51c87

View File

@@ -1,148 +1,148 @@
{% filter remove_whitespace %} {% filter remove_whitespace %}
{# tabs and new lines will be ignored #} {# tabs and new lines will be ignored #}
<div id="thread_{{ post.id }}"> <div id="thread_{{ post.id }}">
{% if post.embed %} {% if post.embed %}
{{ post.embed }} {{ post.embed }}
{% elseif post.file == 'deleted' %} {% elseif post.file == 'deleted' %}
<img src="{{ config.image_deleted }}" alt="" /> <img src="{{ config.image_deleted }}" alt="" />
{% elseif post.file and post.file %} {% 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"> <p class="fileinfo">{% trans %}File:{% endtrans %} <a href="{{ config.uri_img }}{{ post.file }}">{{ post.file }}</a> <span class="unimportant">
( (
{% if post.thumb == 'spoiler' %} {% if post.thumb == 'spoiler' %}
{% trans %}Spoiler Image{% endtrans %}, {% trans %}Spoiler Image{% endtrans %},
{% endif %} {% endif %}
{{ post.filesize|filesize }} {{ post.filesize|filesize }}
{% if post.filex and post.filey %} {% if post.filex and post.filey %}
, {{ post.filex}}x{{ post.filey }} , {{ post.filex}}x{{ post.filey }}
{% if config.show_ratio %} {% if config.show_ratio %}
, {{ post.ratio }} , {{ post.ratio }}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if config.show_filename and post.filename %} {% if config.show_filename and post.filename %}
, ,
{% if post.filename|length > config.max_filename_display %} {% if post.filename|length > config.max_filename_display %}
<span class="postfilename" title="{{ post.filename|bidi_cleanup }}">{{ post.filename|truncate(config.max_filename_display)|bidi_cleanup }}</span>
<span class="postfilename" title="{{ post.filename|bidi_cleanup }}">{{ post.filename|truncate(config.max_filename_display)|bidi_cleanup }}</span> {% else %}
<span class="postfilename">{{ post.filename|bidi_cleanup }}</span>
{% else %} {% endif %}
{% endif %}
<span class="postfilename">{{ post.filename|bidi_cleanup }}</span> {% if post.thumb != 'file' and config.image_identification %}
,
{% endif %} <span class='image_id'>
<a href="http://imgops.com/{{ config.domain }}{{ config.uri_img }}{{ post.file }}">io</a>
{% endif %} {% if post.file|extension == 'jpg' %}
{% if post.thumb != 'file' and config.image_identification %} <a href="http://regex.info/exif.cgi?url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">e</a>
, {% endif %}
<span class='image_id'> <a href="http://www.google.com/searchbyimage?image_url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">g</a>
<a href="http://imgops.com/{{ config.domain }}{{ config.uri_img }}{{ post.file }}">io</a> <a href="http://www.tineye.com/search?url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">t</a>
{% if post.file|extension == 'jpg' %} </span>
<a href="http://regex.info/exif.cgi?url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">e</a> {% endif %}
{% endif %} )
<a href="http://www.google.com/searchbyimage?image_url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">g</a> </span></p>
<a href="http://www.tineye.com/search?url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">t</a> <a href="{{ config.uri_img }}{{ post.file }}" target="_blank"{% if post.thumb == 'file' %} class="file"{% endif %}>
</span> <img src="
{% endif %} {% if post.thumb == 'file' %}
) {{ config.root }}
</span></p> {% if config.file_icons[post.filename|extension] %}
<a href="{{ config.uri_img }}{{ post.file }}" target="_blank"{% if post.thumb == 'file' %} class="file"{% endif %}> {{ config.file_thumb|sprintf(config.file_icons[post.filename|extension]) }}
<img src=" {% else %}
{% if post.thumb == 'file' %} {{ config.file_thumb|sprintf(config.file_icons.default) }}
{{ config.root }} {% endif %}
{% if config.file_icons[post.filename|extension] %} {% elseif post.thumb == 'spoiler' %}
{{ config.file_thumb|sprintf(config.file_icons[post.filename|extension]) }} {{ config.root }}{{ config.spoiler_image }}
{% else %} {% else %}
{{ config.file_thumb|sprintf(config.file_icons.default) }} {{ config.uri_thumb }}{{ post.thumb }}
{% endif %} {% endif %}" style="width:{{ post.thumbx }}px;height:{{ post.thumby }}px" alt="" /></a>
{% elseif post.thumb == 'spoiler' %} {% endif %}
{{ config.root }}{{ config.spoiler_image }} <div class="post op"><p class="intro"{% if not index %} id="{{ post.id }}"{% endif %}>
{% else %} <input type="checkbox" class="delete" name="delete_{{ post.id }}" id="delete_{{ post.id }}" />
{{ config.uri_thumb }}{{ post.thumb }} <label for="delete_{{ post.id }}">
{% endif %}" style="width:{{ post.thumbx }}px;height:{{ post.thumby }}px" alt="" /></a> {% if post.subject|length > 0 %}
{% endif %} {# show subject #}
<div class="post op"><p class="intro"{% if not index %} id="{{ post.id }}"{% endif %}> <span class="subject">{{ post.subject|bidi_cleanup }}</span>
<input type="checkbox" class="delete" name="delete_{{ post.id }}" id="delete_{{ post.id }}" /> {% endif %}
<label for="delete_{{ post.id }}"> {% if post.email|length > 0 %}
{% if post.subject|length > 0 %} {# start email #}
{# show subject #} <a class="email" href="mailto:{{ post.email }}">
<span class="subject">{{ post.subject|bidi_cleanup }}</span> {% endif %}
{% endif %} {% set capcode = post.capcode|capcode %}
{% if post.email|length > 0 %} <span {% if capcode.name %}style="{{ capcode.name }}" {% endif %}class="name">{{ post.name|bidi_cleanup }}</span>
{# start email #} {% if post.trip|length > 0 %}
<a class="email" href="mailto:{{ post.email }}"> <span {% if capcode.trip %}style="{{ capcode.trip }}" {% endif %}class="trip">{{ post.trip }}</span>
{% endif %} {% endif %}
{% set capcode = post.capcode|capcode %} {% if post.email|length > 0 %}
<span {% if capcode.name %}style="{{ capcode.name }}" {% endif %}class="name">{{ post.name|bidi_cleanup }}</span> {# end email #}
{% if post.trip|length > 0 %} </a>
<span {% if capcode.trip %}style="{{ capcode.trip }}" {% endif %}class="trip">{{ post.trip }}</span> {% endif %}
{% endif %} {% if capcode %}
{% if post.email|length > 0 %} {{ capcode.cap }}
{# end email #} {% endif %}
</a> {% if post.mod and post.mod|hasPermission(config.mod.show_ip, board.uri) %}
{% endif %} [<a style="margin:0;" href="?/IP/{{ post.ip }}">{{ post.ip }}</a>]
{% if capcode %} {% endif %}
{{ capcode.cap }} <time datetime="{{ post.time|date('%Y-%m-%dT%H:%M:%S') }}{{ timezone() }}">{{ post.time|date(config.post_date) }}</time>
{% endif %} </label>
{% if post.mod and post.mod|hasPermission(config.mod.show_ip, board.uri) %} {% if config.poster_ids %}
[<a style="margin:0;" href="?/IP/{{ post.ip }}">{{ post.ip }}</a>] ID: {{ post.ip|poster_id(post.id) }}
{% endif %} {% endif %}
<time datetime="{{ post.time|date('%Y-%m-%dT%H:%M:%S') }}{{ timezone() }}">{{ post.time|date(config.post_date) }}</time> <a class="post_no" href="{{ post.link }}">No.</a>
</label> <a class="post_no"
{% if config.poster_ids %} {% if not index %}
ID: {{ post.ip|poster_id(post.id) }} onclick="citeReply({{ post.id }});"
{% endif %} {% endif %}
<a class="post_no" href="{{ post.link }}">No.</a> href="{% if index %}
<a class="post_no" {{ post.link('q') }}
{% if not index %} {% else %}
onclick="citeReply({{ post.id }});" javascript:void(0);
{% endif %} {% endif %}">
href="{% if index %} {{ post.id }}
{{ post.link('q') }} </a>
{% else %} {% if post.sticky %}
javascript:void(0); <img class="icon" title="Sticky" src="{{ config.image_sticky }}" alt="Sticky" />
{% endif %}"> {% endif %}
{{ post.id }} {% if post.locked %}
</a> <img class="icon" title="Locked" src="{{ config.image_locked }}" alt="Locked" />
{% if post.sticky %} {% endif %}
<img class="icon" title="Sticky" src="{{ config.image_sticky }}" alt="Sticky" /> {% if post.bumplocked and (config.mod.view_bumplock < 0 or (post.mod and post.mod|hasPermission(config.mod.view_bumplock, board.uri))) %}
{% endif %} <img class="icon" title="Bumplocked" src="{{ config.image_bumplocked }}" alt="Bumplocked" />
{% if post.locked %} {% endif %}
<img class="icon" title="Locked" src="{{ config.image_locked }}" alt="Locked" /> {% if index %}
{% endif %} <a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ config.file_page|sprintf(post.id) }}">[{% trans %}Reply{% endtrans %}]</a>
{% if post.bumplocked and (config.mod.view_bumplock < 0 or (post.mod and post.mod|hasPermission(config.mod.view_bumplock, board.uri))) %} {% endif %}
<img class="icon" title="Bumplocked" src="{{ config.image_bumplocked }}" alt="Bumplocked" /> {{ post.postControls }}
{% endif %} </p>
{% if index %} <div class="body">
<a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ config.file_page|sprintf(post.id) }}">[{% trans %}Reply{% endtrans %}]</a> {% endfilter %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% filter remove_whitespace %}
{% endif %} </div>
{{ post.postControls }} {% if post.omitted or post.omitted_images %}
</p> <span class="omitted">
<div class="body"> {% if post.omitted %}
{% endfilter %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% filter remove_whitespace %} {% trans %}
</div> 1 post
{% if post.omitted or post.omitted_images %} {% plural post.omitted %}
<span class="omitted"> {{ count }} posts
{% if post.omitted %} {% endtrans %}
{% trans %} {% if post.omitted_images %}
1 post {% trans %}and{% endtrans %}
{% plural post.omitted %} {% endif %}
{{ count }} posts {% endif %}
{% endtrans %} {% if post.omitted_images %}
{% if post.omitted_images %} {% trans %}
{% trans %}and{% endtrans %} 1 image reply
{% endif %} {% plural post.omitted_images %}
{% endif %} {{ count }} image replies
{% if post.omitted_images %} {% endtrans %}
{% trans %} {% endif %} {% trans %}omitted. Click reply to view.{% endtrans %}
1 image reply </span>
{% plural post.omitted_images %} {% endif %}
{{ count }} image replies {% if not index %}
{% endtrans %} {% endif %}
{% endif %} {% trans %}omitted. Click reply to view.{% endtrans %} </div>{% endfilter %}
</span> {% set hr = post.hr %}
{% endif %} {% for post in post.posts %}
{% if not index %} {% include 'post_reply.html' %}
{% endif %} {% endfor %}
</div>{% endfilter %} <br class="clear"/>{% if hr %}<hr/>{% endif %}
{% set hr = post.hr %} </div>