blob: 2a90d709c060eba9a1ea9ef809d17c68916947f1 (
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
|
<fieldset>
<legend>Boards</legend>
<ul>
{% for board in boards %}
<li>
<a href="?/{{ config.board_path|sprintf(board.uri) }}{{ config.file_index }}">{{ config.board_abbreviation|sprintf(board.uri) }}</a>
-
{{ board.title }}
{% if board.subtitle %}
<small>— {{ board.subtitle }}</small>
{% endif %}
{% if mod|hasPermission(config.mod.manageboards) %}
<a href="?/manage/{{ board.uri }}"><small>[manage]</small></a>
{% endif %}
</li>
{% endfor %}
{% if mod|hasPermission(config.mod.newboard) %}
<li style="margin-top:15px"><a href="?/new_board"><strong>Create new board</strong></a></li>
{% endif %}
</ul>
</fieldset>
{% if mod|hasPermission(config.mod.noticeboard) %}
<fieldset>
<legend>Noticeboard</legend>
{# TODO #}
</fieldset>
{% endif %}
<fieldset>
<legend>Administration</legend>
<ul>
{% if mod|hasPermission(config.mod.reports) %}
<li><a href="?/reports">Report queue</a></li>
{% endif %}
{% if mod|hasPermission(config.mod.view_banlist) %}
<li><a href="?/bans">Ban list</a></li>
{% endif %}
{% if mod|hasPermission(config.mod.manageusers) %}
<li><a href="?/users">Manage users</a></li>
{% elseif mod|hasPermission(config.mod.change_password) %}
<li><a href="?/users/{{ mod.id }}">Change password</a></li>
{% endif %}
{% if mod|hasPermission(config.mod.modlog) %}
<li><a href="?/log">Moderation log</a></li>
{% endif %}
{% if mod|hasPermission(config.mod.rebuild) %}
<li><a href="?/rebuild">Rebuild</a></li>
{% if config.cache.enabled %}
<li><a href="?/flushcache">Clear cache</a></li>
{% endif %}
{% endif %}
{% if mod|hasPermission(config.mod.show_config) %}
<li><a href="?/config">Configuration</a></li>
{% endif %}
</ul>
</fieldset>
{% if mod|hasPermission(config.mod.themes) %}
<fieldset>
<legend>Themes</legend>
{# TODO #}
</fieldset>
{% endif %}
<fieldset>
<legend>Search</legend>
{# TODO #}
</fieldset>
|