summaryrefslogtreecommitdiff
path: root/templates/post_reply.html
blob: 530d2626646c5baf193a3f1aaeffe00bd8abdaad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{% filter remove_whitespace %}
{# tabs and new lines will be ignored #}
<div class="post reply" id="reply_{{ post.id }}">

<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) %}
			 [<a class="ip-link" style="margin:0;" href="?/IP/{{ post.ip }}">{{ post.ip }}</a>]
		{% endif %}
		{% include 'post/flag.html' %}
		 <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.thread) }}
	{% endif %}
	 <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>
	</p>
	{% if post.embed %}
		{{ post.embed }}
	{% elseif post.file == 'deleted' %}
		<img class="post-image deleted" src="{{ config.image_deleted }}" alt="" />
	{% 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' %}
				{% trans %}Spoiler Image{% endtrans %}, 
			{% endif %}
			{{ post.filesize|filesize }}
			{% if post.filewidth and post.fileheight %}
				, {{ post.filewidth}}x{{ post.fileheight }}
				{% if config.show_ratio %}
					, {{ post.ratio }}
				{% endif %}
			{% endif %}
			{% if config.show_filename and post.filename %}
				, 
				{% if post.filename|length > config.max_filename_display %}
					<span class="postfilename" title="{{ post.filename|e }}">{{ post.filename|truncate(config.max_filename_display)|bidi_cleanup }}</span>
				{% else %}
					<span class="postfilename">{{ post.filename|e|bidi_cleanup }}</span>
				{% endif %}
			{% endif %}
			{% include "post/image_identification.html" %}
		)
		</span></p>
	{% include "post/image.html" %}
	{% endif %}
	{{ post.postControls }}
	<div class="body">
		{% endfilter %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% filter remove_whitespace %}
		{% if post.modifiers['ban message'] %}
			{{ config.mod.ban_message|sprintf(post.modifiers['ban message']) }}
		{% endif %}
	</div>
</div>
<br/>
{% endfilter %}