aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/templates/src/systemtemplates/comments_list.html
blob: 4d05db2aad5c772d518067ca2f3ec25ff90b851b (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
<ste:load name="master.html" />
<ste:block name="content">
	<ste:if>$success
		<ste:then>
			<div class="success"><ste:escape>$success</ste:escape></div>
		</ste:then>
	</ste:if>
	<ste:if>$error
		<ste:then>
			<div class="error"><ste:escape>$error</ste:escape></div>
		</ste:then>
	</ste:if>
	
	<form action="$rel_path_to_root/backend/content/comments" method="GET" accept-charset="UTF-8">
		<div>
			<strong><ste:escape><ste:get_translation for="filter" /></ste:escape>:</strong>
			<ste:escape><ste:get_translation for="filter_article" /></ste:escape> <input type="text" name="filter_article" value="<ste:escape>$filter_article</ste:escape>" />
			<input type="hidden" name="sort_$sorting[dir]" value="$sorting[by]" />
			<input type="submit" />
		</div>
	</form>
	
	<form action="$rel_path_to_root/backend/content/comments?$filterquery?{$filterquery|&|}$sortquery" method="POST">
		<table class="fullwidth listtab">
			<thead>
				<tr>
					<th>&nbsp;</th>
					<th>
						<ste:escape><ste:get_translation for="was_read" /></ste:escape>
						<a href="$rel_path_to_root/backend/content/comments??{$filterquery|${filterquery}&|}sort_asc=was_read"><img src="$rel_path_to_root/ratatoeskr/cms_style/images/sortarrow_up_?{$sort_asc_was_read|filled|outline}.png" alt="<ste:get_translation for='sort_asc' />" /></a>
						<a href="$rel_path_to_root/backend/content/comments??{$filterquery|${filterquery}&|}sort_desc=was_read"><img src="$rel_path_to_root/ratatoeskr/cms_style/images/sortarrow_down_?{$sort_desc_was_read|filled|outline}.png" alt="<ste:get_translation for='sort_desc' />" /></a>
					</th>
					<th><ste:escape><ste:get_translation for="visible" /></ste:escape></th>
					<th><ste:escape><ste:get_translation for="comment_excerpt" /></ste:escape></th>
					<th>
						<ste:escape><ste:get_translation for="language" /></ste:escape>
						<a href="$rel_path_to_root/backend/content/comments??{$filterquery|${filterquery}&|}sort_asc=language"><img src="$rel_path_to_root/ratatoeskr/cms_style/images/sortarrow_up_?{$sort_asc_language|filled|outline}.png" alt="<ste:get_translation for='sort_asc' />" /></a>
						<a href="$rel_path_to_root/backend/content/comments??{$filterquery|${filterquery}&|}sort_desc=language"><img src="$rel_path_to_root/ratatoeskr/cms_style/images/sortarrow_down_?{$sort_desc_language|filled|outline}.png" alt="<ste:get_translation for='sort_desc' />" /></a>
					</th>
					<th><ste:escape><ste:get_translation for="author" /></ste:escape></th>
					<th>
						<ste:escape><ste:get_translation for="date_time" /></ste:escape>
						<a href="$rel_path_to_root/backend/content/comments??{$filterquery|${filterquery}&|}sort_asc=date"><img src="$rel_path_to_root/ratatoeskr/cms_style/images/sortarrow_up_?{$sort_asc_date|filled|outline}.png" alt="<ste:get_translation for='sort_asc' />" /></a>
						<a href="$rel_path_to_root/backend/content/comments??{$filterquery|${filterquery}&|}sort_desc=date"><img src="$rel_path_to_root/ratatoeskr/cms_style/images/sortarrow_down_?{$sort_desc_date|filled|outline}.png" alt="<ste:get_translation for='sort_desc' />" /></a>
					</th>
					<th><ste:escape><ste:get_translation for="article" /></ste:escape></th>
				</tr>
			</thead>
			<tbody>
				<ste:set var="comments_n"><ste:arraylen array="comments" /></ste:set>
				<ste:if>~{$comments_n|gt|0}
					<ste:then>
						<ste:foreach array="comments" value="comment">
							<tr>
								<td><input type="checkbox" name="comment_multiselect[]" value="$comment[id]" /></td>
								<td>?{$comment[read_by_admin]|<ste:get_translation for="yes" />|<strong><ste:get_translation for="no" /></strong>}</td>
								<td>?{$comment[visible]|<ste:get_translation for="yes" />|<ste:get_translation for="no" />}</td>
								<td><em><ste:escape>$comment[excerpt]</ste:escape>...</em> <a href="$rel_path_to_root/backend/content/comments/$comment[id]"><ste:escape><ste:get_translation for="read_more" /></ste:escape></a></td>
								<td>$comment[language]</td>
								<td><ste:escape>$comment[author]</ste:escape></td>
								<td><ste:date timestamp="$comment[date]">%Y-%m-%d %H:%M:%S</ste:date></td>
								<td><a href="$rel_path_to_root/backend/content/write/<ste:escape>$comment[article]</ste:escape>"><ste:escape>$comment[article]</ste:escape></a></td>
							</tr>
						</ste:foreach>
					</ste:then>
					<ste:else>
						<tr><td colspan="8" style="text-align: center"><em><ste:escape><ste:get_translation for="no_comments" /></ste:escape></em></td></tr>
					</ste:else>
				</ste:if>
			</tbody>
		</table>
		<div>
			<select name="action_on_comments">
				<option value="" selected="selected"></option>
				<option value="mark_read"><ste:escape><ste:get_translation for="commentaction_mark_read" /></ste:escape></option>
				<option value="mark_unread"><ste:escape><ste:get_translation for="commentaction_mark_unread" /></ste:escape></option>
				<option value="make_visible"><ste:escape><ste:get_translation for="commentaction_make_visible" /></ste:escape></option>
				<option value="make_invisible"><ste:escape><ste:get_translation for="commentaction_make_invisible" /></ste:escape></option>
				<option value="delete"><ste:escape><ste:get_translation for="delete" /></ste:escape></option>
			</select>
			<input type="submit" />
		</div>
	</form>
</ste:block>