summaryrefslogtreecommitdiff
path: root/templates/post_reply.html
blob: 72be9111597f0a56936c38d7c01b076d69337498 (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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{% filter remove_whitespace %}
{# tabs and new lines will be ignored #}
<div class="post reply" id="reply_{{ post.id }}" itemprop="comment" itemscope itemid="/{{ board.uri }}/{{ post.id }}" itemtype="http://schema.org/UserComments"
	{% if not index %} itemref="/{{ board.uri }}/{{ post.thread }}"{% endif %}>

<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 itemprop="name" class="subject">{{ post.subject }}</span> 
		{% endif %}
		{% if post.email|length > 0 %}
			{# start email #}
			<a class="email" href="mailto:{{ post.email }}">
		{% endif %}
		<span class="name">{{ post.name }}</span>
		{% 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 %}
		 <time itemprop="commentTime" datetime="{{ post.time|date('c') }}">{{ post.time|date(config.post_date) }}</time>
	</label>
	{% if config.poster_ids %}
		 ID: {{ post.ip|poster_id(post.thread) }}
	{% endif %}
	 <a itemprop="url" class="post_no" {% if not index %}onclick="highlightReply({{ post.id }})" {% endif %}href="{{ post.link }}">No.</a>
	<a itemprop="replyToUrl" 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>
	</p>
	{% if post.embed %}
		{{ post.embed }}
	{% elseif post.file == 'deleted' %}
		<img itemprop="image" 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' %}
				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 %}
	{{ post.postControls }}
	<p itemprop="commentText" class="body">
		{% endfilter %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% filter remove_whitespace %}
	</p>
</div>
<br/>
{% endfilter %}