summaryrefslogtreecommitdiff
path: root/templates/mod/debug/antispam.html
blob: 9979a093963f284937b15276ca17724bdbe10353 (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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<p style="text-align:center">
	Most recent:
</p>
<table class="modlog" style="width:700px;margin:auto">
	<tr>
		<th>Board</th>
		<th>Thread</th>
		<th>Hash (SHA1)</th>
		<th>Created</th>
		<th>Expires</th>
		<th>Passed</th>
	</tr>
	{% for hash in recent %}
		<tr>
			<td>{{ config.board_abbreviation|sprintf(hash.board) }}</td>
			<td>
				{% if hash.thread > 0 %}
					{{ hash.thread }}
				{% elseif hash.thread < 0 %}
					Index (page {{ - hash.thread }})
				{% else %}
					-
				{% endif %}
			</td>
			<td>
				<small><code>{{ hash.hash }}</code></small>
			</td>
			<td>
				<span title="{{ hash.created|date(config.post_date) }}">{{ hash.created|ago }} ago</span>
			</td>
			<td>
				{% if hash.expires %}
					<span title="{{ hash.expires|date(config.post_date) }}">
						{% if hash.expires < time() %}
							{{ hash.expires|ago }} ago
						{% else %}
							{{ hash.expires|until }}
						{% endif %}
					</span>
				{% else %}
					-
				{% endif %}
			</td>
			<td>{{ hash.passed }}</td>
		</tr>
	{% endfor %}
</table>

<p style="text-align:center">
	Most used (in active):
</p>
<table class="modlog" style="width:700px;margin:auto">
	<tr>
		<th>Board</th>
		<th>Thread</th>
		<th>Hash (SHA1)</th>
		<th>Created</th>
		<th>Expires</th>
		<th>Passed</th>
	</tr>
	{% for hash in top %}
		<tr>
			<td>{{ config.board_abbreviation|sprintf(hash.board) }}</td>
			<td>
				{% if hash.thread > 0 %}
					{{ hash.thread }}
				{% elseif hash.thread < 0 %}
					Index (page {{ - hash.thread }})
				{% else %}
					-
				{% endif %}
			</td>
			<td>
				<small><code>{{ hash.hash }}</code></small>
			</td>
			<td>
				<span title="{{ hash.created|date(config.post_date) }}">{{ hash.created|ago }} ago</span>
			</td>
			<td>
				{% if hash.expires %}
					<span title="{{ hash.expires|date(config.post_date) }}">
						{% if hash.expires < time() %}
							{{ hash.expires|ago }} ago
						{% else %}
							{{ hash.expires|until }}
						{% endif %}
					</span>
				{% else %}
					-
				{% endif %}
			</td>
			<td>{{ hash.passed }}</td>
		</tr>
	{% endfor %}
</table>

<p style="text-align:center">
	Total: <strong>{{ total }}</strong> (<strong>{{ expiring }}</strong> set to expire)
</p>

<form method="post" action="?/debug/antispam">
	<table class="modlog" style="width:1%;white-space:nowrap;margin:auto">
		<tr>
			<th>Board</th>
			<th>Thread</th>
			<th></th>
		</tr>
		<tr>
			<td>
				<input type="text" name="board" style="width:90px" value="{{ board }}">
			</td>
			<td>
				<input type="text" name="thread" style="width:90px" value="{{ thread }}">
			</td>
			<td>
				<input type="submit" name="filter" value="Filter"> 
				<input type="submit" name="purge" value="Purge">
			</td>
		</tr>
	</table>
</form>