mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-12 01:50:48 +01:00
Merge pull request #682 from Zankaria/appeal-count
Show ban appeal count in bold on mod dashboard
This commit is contained in:
commit
59c9e1771a
File diff suppressed because it is too large
Load Diff
@ -1,15 +1,15 @@
|
||||
{% 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 %}
|
||||
<fieldset>
|
||||
<legend>{% trans '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|e }}
|
||||
{% if board.subtitle %}
|
||||
<small>—
|
||||
<small>—
|
||||
{% if config.allow_subtitle_html %}
|
||||
{{ board.subtitle }}
|
||||
{% else %}
|
||||
@ -25,7 +25,7 @@
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
{% if mod|hasPermission(config.mod.newboard) %}
|
||||
<li style="margin-top:15px"><a href="?/new-board"><strong>{% trans 'Create new board' %}</strong></a></li>
|
||||
{% endif %}
|
||||
@ -48,16 +48,16 @@
|
||||
{% else %}
|
||||
<em>{% trans 'no subject' %}</em>
|
||||
{% endif %}
|
||||
</a>
|
||||
</a>
|
||||
<small class="unimportant">
|
||||
— by
|
||||
— by
|
||||
{% if post.username %}
|
||||
{{ post.username|e }}
|
||||
{% else %}
|
||||
<em>deleted?</em>
|
||||
{% endif %}
|
||||
at
|
||||
{{ post.time|date(config.post_date) }}
|
||||
{% endif %}
|
||||
at
|
||||
{{ post.time|date(config.post_date) }}
|
||||
</small>
|
||||
</li>
|
||||
{% endfor %}
|
||||
@ -69,7 +69,7 @@
|
||||
<li><a href="?/edit_news">{% trans 'News' %}</a></li>
|
||||
<li>
|
||||
<a href="?/inbox">
|
||||
{% trans 'PM inbox' %}
|
||||
{% trans 'PM inbox' %}
|
||||
{% if unread_pms > 0 %}<strong>{%endif %}({{ unread_pms }} unread){% if unread_pms > 0 %}</strong>{%endif %}
|
||||
</a>
|
||||
</li>
|
||||
@ -78,7 +78,7 @@
|
||||
|
||||
<fieldset>
|
||||
<legend>{% trans 'Administration' %}</legend>
|
||||
|
||||
|
||||
<ul>
|
||||
{% if mod|hasPermission(config.mod.reports) %}
|
||||
<li>
|
||||
@ -91,7 +91,9 @@
|
||||
<li><a href="?/bans">{% trans 'Ban list' %}</a></li>
|
||||
{% endif %}
|
||||
{% if config.ban_appeals and mod|hasPermission(config.mod.view_ban_appeals) %}
|
||||
<li><a href="?/ban-appeals">{% trans 'Ban appeals' %}</a></li>
|
||||
{% if appeals > 0 %}<strong>{% endif %}
|
||||
<li><a href="?/ban-appeals">{% trans 'Ban appeals' %}</a></li>
|
||||
{% if appeals > 0 %}</strong>{% endif %}
|
||||
{% endif %}
|
||||
{% if mod|hasPermission(config.mod.manageusers) %}
|
||||
<li><a href="?/users">{% trans 'Manage users' %}</a></li>
|
||||
@ -116,14 +118,14 @@
|
||||
{% if mod|hasPermission(config.mod.edit_config) %}
|
||||
<li><a href="?/config">{% trans 'Configuration' %}</a></li>
|
||||
{% endif %}
|
||||
|
||||
|
||||
</ul>
|
||||
</fieldset>
|
||||
|
||||
{% if mod|hasPermission(config.mod.search) %}
|
||||
<fieldset>
|
||||
<legend>{% trans 'Search' %}</legend>
|
||||
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
{% include 'mod/search_form.html' %}
|
||||
@ -135,7 +137,7 @@
|
||||
{% if config.mod.dashboard_links and config.mod.dashboard_links|length %}
|
||||
<fieldset>
|
||||
<legend>{% trans 'Other' %}</legend>
|
||||
|
||||
|
||||
<ul>
|
||||
{% for label,link in config.mod.dashboard_links %}
|
||||
<li><a href="{{ link }}">{{ label }}</a></li>
|
||||
@ -162,8 +164,8 @@
|
||||
<legend>Update</legend>
|
||||
<ul>
|
||||
<li>
|
||||
A newer version of vichan
|
||||
(<strong>v{{ newer_release.massive }}.{{ newer_release.major }}.{{ newer_release.minor }}</strong>) is available!
|
||||
A newer version of vichan
|
||||
(<strong>v{{ newer_release.massive }}.{{ newer_release.major }}.{{ newer_release.minor }}</strong>) is available!
|
||||
See <a href="https://engine.vichan.net">https://engine.vichan.net/</a> for upgrade instructions.
|
||||
</li>
|
||||
</ul>
|
||||
@ -172,9 +174,8 @@
|
||||
|
||||
<fieldset>
|
||||
<legend>{% trans 'User account' %}</legend>
|
||||
|
||||
|
||||
<ul>
|
||||
<li><a href="?/logout/{{ logout_token }}">{% trans 'Logout' %}</a></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user