2022-11-17 01:48:24 -05:00
|
|
|
{% if config.url_banner %}<img class="board_image" src="{{ config.url_banner }}" {% if config.banner_width or config.banner_height %}style="{% if config.banner_width %}width:{{ config.banner_width }}px{% endif %};{% if config.banner_width %}height:{{ config.banner_height }}px{% endif %}" {% endif %}alt="" />{% endif %}
|
2012-04-13 09:29:08 +10:00
|
|
|
<fieldset>
|
2012-04-20 21:54:30 +10:00
|
|
|
<legend>{% trans 'Boards' %}</legend>
|
2024-02-23 22:57:27 +01:00
|
|
|
|
2012-04-13 09:29:08 +10: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>
|
2024-09-17 23:28:21 -07:00
|
|
|
-
|
2012-05-06 01:33:10 +10:00
|
|
|
{{ board.title|e }}
|
2012-04-13 09:29:08 +10:00
|
|
|
{% if board.subtitle %}
|
2024-02-23 22:57:27 +01:00
|
|
|
<small>—
|
2013-08-08 18:58:44 +00:00
|
|
|
{% if config.allow_subtitle_html %}
|
|
|
|
{{ board.subtitle }}
|
|
|
|
{% else %}
|
|
|
|
{{ board.subtitle|e }}
|
|
|
|
{% endif %}
|
|
|
|
</small>
|
2012-04-13 09:29:08 +10:00
|
|
|
{% endif %}
|
|
|
|
{% if mod|hasPermission(config.mod.manageboards) %}
|
2012-05-06 01:33:10 +10:00
|
|
|
<a href="?/edit/{{ board.uri }}"><small>[{% trans 'edit' %}]</small></a>
|
2012-04-13 09:29:08 +10:00
|
|
|
{% endif %}
|
2016-05-06 16:49:35 +02:00
|
|
|
{% if mod|hasPermission(config.mod.edit_pages) %}
|
|
|
|
<a href="?/edit_pages/{{ board.uri }}"><small>[{% trans 'pages' %}]</small></a>
|
|
|
|
{% endif %}
|
2012-04-13 09:29:08 +10:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
2024-02-23 22:57:27 +01:00
|
|
|
|
2012-04-13 09:29:08 +10:00
|
|
|
{% if mod|hasPermission(config.mod.newboard) %}
|
2012-05-06 01:33:10 +10:00
|
|
|
<li style="margin-top:15px"><a href="?/new-board"><strong>{% trans 'Create new board' %}</strong></a></li>
|
2012-04-13 09:29:08 +10:00
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</fieldset>
|
|
|
|
|
2012-05-06 01:33:10 +10:00
|
|
|
<fieldset>
|
|
|
|
<legend>{% trans 'Messages' %}</legend>
|
|
|
|
<ul>
|
|
|
|
{% if mod|hasPermission(config.mod.noticeboard) %}
|
2023-03-29 18:59:28 -03:00
|
|
|
{% if noticeboard|length > 0 %}
|
2012-04-20 21:54:30 +10:00
|
|
|
<li>
|
2012-05-06 01:33:10 +10:00
|
|
|
{% trans 'Noticeboard' %}:
|
2012-04-20 21:54:30 +10:00
|
|
|
<ul>
|
|
|
|
{% for post in noticeboard %}
|
|
|
|
<li>
|
|
|
|
<a href="?/noticeboard#{{ post.id }}">
|
|
|
|
{% if post.subject %}
|
|
|
|
{{ post.subject|e }}
|
|
|
|
{% else %}
|
|
|
|
<em>{% trans 'no subject' %}</em>
|
|
|
|
{% endif %}
|
2024-02-23 22:57:27 +01:00
|
|
|
</a>
|
2012-04-20 21:54:30 +10:00
|
|
|
<small class="unimportant">
|
2024-02-23 22:57:27 +01:00
|
|
|
— by
|
2012-04-20 21:54:30 +10:00
|
|
|
{% if post.username %}
|
2012-05-06 01:33:10 +10:00
|
|
|
{{ post.username|e }}
|
2012-04-20 21:54:30 +10:00
|
|
|
{% else %}
|
|
|
|
<em>deleted?</em>
|
2024-02-23 22:57:27 +01:00
|
|
|
{% endif %}
|
|
|
|
at
|
|
|
|
{{ post.time|date(config.post_date) }}
|
2012-04-20 21:54:30 +10:00
|
|
|
</small>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2012-08-28 02:24:29 +10:00
|
|
|
<li><a href="?/noticeboard">{% trans 'View all noticeboard entries' %}</a></li>
|
2012-05-06 01:33:10 +10:00
|
|
|
{% endif %}
|
2014-12-14 03:27:26 -08:00
|
|
|
<li><a href="?/edit_news">{% trans 'News' %}</a></li>
|
2012-05-06 01:33:10 +10:00
|
|
|
<li>
|
|
|
|
<a href="?/inbox">
|
2024-02-23 22:57:27 +01:00
|
|
|
{% trans 'PM inbox' %}
|
2024-09-17 23:28:21 -07:00
|
|
|
{% if unread_pms > 0 %}<strong>{%endif %} ({{ unread_pms }} unread){% if unread_pms > 0 %}</strong>{%endif %}
|
2012-05-06 01:33:10 +10:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</fieldset>
|
2012-04-13 09:29:08 +10:00
|
|
|
|
|
|
|
<fieldset>
|
2012-04-20 21:54:30 +10:00
|
|
|
<legend>{% trans 'Administration' %}</legend>
|
2024-02-23 22:57:27 +01:00
|
|
|
|
2012-04-13 09:29:08 +10:00
|
|
|
<ul>
|
|
|
|
{% if mod|hasPermission(config.mod.reports) %}
|
2012-05-25 21:40:01 +10:00
|
|
|
<li>
|
|
|
|
{% if reports > 0 %}<strong>{% endif %}
|
|
|
|
<a href="?/reports">{% trans 'Report queue' %} ({{ reports }})</a>
|
|
|
|
{% if reports > 0 %}</strong>{% endif %}
|
|
|
|
</li>
|
2012-04-13 09:29:08 +10:00
|
|
|
{% endif %}
|
|
|
|
{% if mod|hasPermission(config.mod.view_banlist) %}
|
2012-04-20 21:54:30 +10:00
|
|
|
<li><a href="?/bans">{% trans 'Ban list' %}</a></li>
|
2012-04-13 09:29:08 +10:00
|
|
|
{% endif %}
|
2013-09-21 12:51:23 +10:00
|
|
|
{% if config.ban_appeals and mod|hasPermission(config.mod.view_ban_appeals) %}
|
2021-07-24 04:32:45 -02:00
|
|
|
{% if appeals > 0 %}<strong>{% endif %}
|
|
|
|
<li><a href="?/ban-appeals">{% trans 'Ban appeals' %}</a></li>
|
|
|
|
{% if appeals > 0 %}</strong>{% endif %}
|
2013-09-21 12:51:23 +10:00
|
|
|
{% endif %}
|
2012-04-13 09:29:08 +10:00
|
|
|
{% if mod|hasPermission(config.mod.manageusers) %}
|
2012-04-20 21:54:30 +10:00
|
|
|
<li><a href="?/users">{% trans 'Manage users' %}</a></li>
|
2012-04-13 09:29:08 +10:00
|
|
|
{% elseif mod|hasPermission(config.mod.change_password) %}
|
2012-04-20 21:54:30 +10:00
|
|
|
<li><a href="?/users/{{ mod.id }}">{% trans 'Change password' %}</a></li>
|
2012-04-13 09:29:08 +10:00
|
|
|
{% endif %}
|
2012-08-13 00:18:13 +10:00
|
|
|
{% if mod|hasPermission(config.mod.themes) %}
|
|
|
|
<li><a href="?/themes">{% trans 'Manage themes' %}</a></li>
|
|
|
|
{% endif %}
|
2012-04-13 09:29:08 +10:00
|
|
|
{% if mod|hasPermission(config.mod.modlog) %}
|
2012-04-20 21:54:30 +10:00
|
|
|
<li><a href="?/log">{% trans 'Moderation log' %}</a></li>
|
2012-04-13 09:29:08 +10:00
|
|
|
{% endif %}
|
2016-05-06 16:49:35 +02:00
|
|
|
{% if mod|hasPermission(config.mod.edit_pages) %}
|
|
|
|
<li><a href="?/edit_pages">{% trans 'Global static pages' %}</a></li>
|
|
|
|
{% endif %}
|
2014-03-25 12:15:40 +01:00
|
|
|
{% if mod|hasPermission(config.mod.recent) %}
|
2014-03-25 12:05:07 +01:00
|
|
|
<li><a href="?/recent/25">{% trans 'Recent posts' %}</a></li>
|
|
|
|
{% endif %}
|
2012-04-13 09:29:08 +10:00
|
|
|
{% if mod|hasPermission(config.mod.rebuild) %}
|
2012-04-20 21:54:30 +10:00
|
|
|
<li><a href="?/rebuild">{% trans 'Rebuild' %}</a></li>
|
2012-04-13 09:29:08 +10:00
|
|
|
{% endif %}
|
2013-08-01 17:18:10 -04:00
|
|
|
{% if mod|hasPermission(config.mod.edit_config) %}
|
2012-04-20 21:54:30 +10:00
|
|
|
<li><a href="?/config">{% trans 'Configuration' %}</a></li>
|
2012-04-13 09:29:08 +10:00
|
|
|
{% endif %}
|
2024-02-23 22:57:27 +01:00
|
|
|
|
2012-04-13 09:29:08 +10:00
|
|
|
</ul>
|
|
|
|
</fieldset>
|
|
|
|
|
2013-07-20 07:50:33 -04:00
|
|
|
{% if mod|hasPermission(config.mod.search) %}
|
2013-07-22 18:30:45 -04:00
|
|
|
<fieldset>
|
|
|
|
<legend>{% trans 'Search' %}</legend>
|
2024-02-23 22:57:27 +01:00
|
|
|
|
2013-07-22 18:30:45 -04:00
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
{% include 'mod/search_form.html' %}
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</fieldset>
|
2013-07-20 07:50:33 -04:00
|
|
|
{% endif %}
|
2012-04-16 20:11:10 +10:00
|
|
|
|
2023-03-29 18:59:28 -03:00
|
|
|
{% if config.mod.dashboard_links and config.mod.dashboard_links|length %}
|
2013-07-22 18:30:45 -04:00
|
|
|
<fieldset>
|
|
|
|
<legend>{% trans 'Other' %}</legend>
|
2024-02-23 22:57:27 +01:00
|
|
|
|
2013-07-22 18:30:45 -04:00
|
|
|
<ul>
|
|
|
|
{% for label,link in config.mod.dashboard_links %}
|
|
|
|
<li><a href="{{ link }}">{{ label }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</fieldset>
|
|
|
|
{% endif %}
|
|
|
|
|
2012-04-16 20:11:10 +10:00
|
|
|
{% if config.debug %}
|
|
|
|
<fieldset>
|
2012-04-20 21:54:30 +10:00
|
|
|
<legend>{% trans 'Debug' %}</legend>
|
2012-04-16 20:11:10 +10:00
|
|
|
<ul>
|
2012-04-20 21:54:30 +10:00
|
|
|
<li><a href="?/debug/antispam">{% trans 'Anti-spam' %}</a></li>
|
2013-01-27 18:44:53 +11:00
|
|
|
<li><a href="?/debug/recent">{% trans 'Recent posts' %}</a></li>
|
|
|
|
{% if mod|hasPermission(config.mod.debug_sql) %}
|
|
|
|
<li><a href="?/debug/sql">{% trans 'SQL' %}</a></li>
|
|
|
|
{% endif %}
|
2012-04-16 20:11:10 +10:00
|
|
|
</ul>
|
|
|
|
</fieldset>
|
|
|
|
{% endif %}
|
|
|
|
|
2012-05-06 01:33:10 +10:00
|
|
|
{% if newer_release %}
|
|
|
|
<fieldset>
|
|
|
|
<legend>Update</legend>
|
|
|
|
<ul>
|
|
|
|
<li>
|
2024-02-23 22:57:27 +01:00
|
|
|
A newer version of vichan
|
|
|
|
(<strong>v{{ newer_release.massive }}.{{ newer_release.major }}.{{ newer_release.minor }}</strong>) is available!
|
2024-06-05 18:08:23 -07:00
|
|
|
See <a href="https://vichan.info">https://vichan.info/</a> for upgrade instructions.
|
2012-05-06 01:33:10 +10:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</fieldset>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<legend>{% trans 'User account' %}</legend>
|
2024-02-23 22:57:27 +01:00
|
|
|
|
2012-05-06 01:33:10 +10:00
|
|
|
<ul>
|
2013-09-23 16:48:56 +10:00
|
|
|
<li><a href="?/logout/{{ logout_token }}">{% trans 'Logout' %}</a></li>
|
2012-05-06 01:33:10 +10:00
|
|
|
</ul>
|
|
|
|
</fieldset>
|