1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-30 10:14:37 +01:00
vichan/templates/mod/dashboard.html

121 lines
3.1 KiB
HTML
Raw Normal View History

2012-04-13 01:29:08 +02:00
<fieldset>
2012-04-20 13:54:30 +02:00
<legend>{% trans 'Boards' %}</legend>
2012-04-13 01:29:08 +02:00
<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>&mdash; {{ board.subtitle }}</small>
{% endif %}
{% if mod|hasPermission(config.mod.manageboards) %}
2012-04-20 13:54:30 +02:00
<a href="?/manage/{{ board.uri }}"><small>[{% trans 'manage' %}]</small></a>
2012-04-13 01:29:08 +02:00
{% endif %}
</li>
{% endfor %}
{% if mod|hasPermission(config.mod.newboard) %}
2012-04-20 13:54:30 +02:00
<li style="margin-top:15px"><a href="?/new_board"><strong>{% trans 'Create new board' %}</strong></a></li>
2012-04-13 01:29:08 +02:00
{% endif %}
</ul>
</fieldset>
{% if mod|hasPermission(config.mod.noticeboard) %}
<fieldset>
2012-04-20 13:54:30 +02:00
<legend>{% trans 'Noticeboard' %}</legend>
<ul>
{% if noticeboard %}
<li>
{% trans 'Latest posts:' %}
<ul>
{% for post in noticeboard %}
<li>
<a href="?/noticeboard#{{ post.id }}">
{% if post.subject %}
{{ post.subject|e }}
{% else %}
<em>{% trans 'no subject' %}</em>
{% endif %}
</a>
<small class="unimportant">
&mdash; by
{% if post.username %}
{{ post.username }}
{% else %}
<em>deleted?</em>
{% endif %}
at
{{ notice.time|date(config.post_date) }}
</small>
</li>
{% endfor %}
</ul>
</li>
{% endif %}
<li><a href="?/noticeboard">{% trans 'View all entries' %}</a></li>
</ul>
2012-04-13 01:29:08 +02:00
</fieldset>
{% endif %}
<fieldset>
2012-04-20 13:54:30 +02:00
<legend>{% trans 'Administration' %}</legend>
2012-04-13 01:29:08 +02:00
<ul>
{% if mod|hasPermission(config.mod.reports) %}
2012-04-20 13:54:30 +02:00
<li><a href="?/reports">{% trans 'Report queue' %}</a></li>
2012-04-13 01:29:08 +02:00
{% endif %}
{% if mod|hasPermission(config.mod.view_banlist) %}
2012-04-20 13:54:30 +02:00
<li><a href="?/bans">{% trans 'Ban list' %}</a></li>
2012-04-13 01:29:08 +02:00
{% endif %}
{% if mod|hasPermission(config.mod.manageusers) %}
2012-04-20 13:54:30 +02:00
<li><a href="?/users">{% trans 'Manage users' %}</a></li>
2012-04-13 01:29:08 +02:00
{% elseif mod|hasPermission(config.mod.change_password) %}
2012-04-20 13:54:30 +02:00
<li><a href="?/users/{{ mod.id }}">{% trans 'Change password' %}</a></li>
2012-04-13 01:29:08 +02:00
{% endif %}
{% if mod|hasPermission(config.mod.modlog) %}
2012-04-20 13:54:30 +02:00
<li><a href="?/log">{% trans 'Moderation log' %}</a></li>
2012-04-13 01:29:08 +02:00
{% endif %}
{% if mod|hasPermission(config.mod.rebuild) %}
2012-04-20 13:54:30 +02:00
<li><a href="?/rebuild">{% trans 'Rebuild' %}</a></li>
2012-04-13 01:29:08 +02:00
{% if config.cache.enabled %}
2012-04-20 13:54:30 +02:00
<li><a href="?/flushcache">{% trans 'Clear cache' %}</a></li>
2012-04-13 01:29:08 +02:00
{% endif %}
{% endif %}
{% if mod|hasPermission(config.mod.show_config) %}
2012-04-20 13:54:30 +02:00
<li><a href="?/config">{% trans 'Configuration' %}</a></li>
2012-04-13 01:29:08 +02:00
{% endif %}
</ul>
</fieldset>
{% if mod|hasPermission(config.mod.themes) %}
<fieldset>
2012-04-20 13:54:30 +02:00
<legend>{% trans 'Themes' %}</legend>
2012-04-13 01:29:08 +02:00
{# TODO #}
</fieldset>
{% endif %}
<fieldset>
2012-04-20 13:54:30 +02:00
<legend>{% trans 'Search' %}</legend>
2012-04-13 01:29:08 +02:00
{# TODO #}
</fieldset>
2012-04-16 12:11:10 +02:00
{% if config.debug %}
<fieldset>
2012-04-20 13:54:30 +02:00
<legend>{% trans 'Debug' %}</legend>
2012-04-16 12:11:10 +02:00
<ul>
2012-04-20 13:54:30 +02:00
<li><a href="?/debug/antispam">{% trans 'Anti-spam' %}</a></li>
2012-04-16 12:11:10 +02:00
</ul>
</fieldset>
{% endif %}