summaryrefslogtreecommitdiff
path: root/templates/mod/debug/antispam.html
blob: 99331ed344b9de7b2c310ed102d303395430bb39 (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
<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 %}
					{{ hash.thread }}
				{% else %}
					-
				{% endif %}</td>
			<td>
				<small>{{ hash.hash|upper }}</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) }}">
						{{ hash.expires|until }}
					</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>