1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +01:00

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