summaryrefslogtreecommitdiff
path: root/templates/mod/log.html
blob: e75330b5e533360a2d879fb059f14b3968db477c (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
<table class="modlog">
	<tr>
		<th>{% trans 'Staff' %}</th>
		<th>{% trans 'IP address' %}</th>
		<th>{% trans 'Time' %}</th>
		<th>{% trans 'Board' %}</th>
		<th>{% trans 'Action' %}</th>
	</tr>
	{% for log in logs %}
		<tr>
			<td class="minimal">
				{% if log.username %}
					<a href="?/log:{{ log.username|e }}">{{ log.username|e }}</a>
				{% elseif log.mod == -1 %}
					<em>system</em>
				{% else %}
					<em>{% trans 'deleted?' %}</em>
				{% endif %}
			</td>
			<td class="minimal">
				<a href="?/IP/{{ log.ip }}">{{ log.ip }}</a>
			</td>
			<td class="minimal">
				<span title="{{ log.time|date(config.post_date) }}">{{ log.time|ago }}</span>
			</td>
			<td class="minimal">
				{% if log.board %}
					<a href="?/{{ config.board_path|sprintf(log.board) }}{{ config.file_index }}">{{ config.board_abbreviation|sprintf(log.board) }}</a>
				{% else %}
					-
				{% endif %}
			</td>
			<td>
				{{ log.text }}
			</td>
		</tr>
	{% endfor %}
</table>

{% if count > logs|count %}
	<p class="unimportant" style="text-align:center;word-wrap:break-word">
		{% for i in range(0, (count - 1) / config.mod.modlog_page) %}
			<a href="?/log{% if username %}:{{ username }}{% endif %}/{{ i + 1 }}">[{{ i + 1 }}]</a> 
		{% endfor %}
	</p>
{% endif %}