1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +01:00

Merge pull request #682 from Zankaria/appeal-count

Show ban appeal count in bold on mod dashboard
This commit is contained in:
Lorenzo Yario 2024-02-26 19:41:40 -08:00 committed by GitHub
commit 59c9e1771a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 508 additions and 505 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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 %} {% 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> <fieldset>
<legend>{% trans 'Boards' %}</legend> <legend>{% trans 'Boards' %}</legend>
<ul> <ul>
{% for board in boards %} {% for board in boards %}
<li> <li>
<a href="?/{{ config.board_path|sprintf(board.uri) }}{{ config.file_index }}">{{ config.board_abbreviation|sprintf(board.uri) }}</a> <a href="?/{{ config.board_path|sprintf(board.uri) }}{{ config.file_index }}">{{ config.board_abbreviation|sprintf(board.uri) }}</a>
- -
{{ board.title|e }} {{ board.title|e }}
{% if board.subtitle %} {% if board.subtitle %}
<small>&mdash; <small>&mdash;
{% if config.allow_subtitle_html %} {% if config.allow_subtitle_html %}
{{ board.subtitle }} {{ board.subtitle }}
{% else %} {% else %}
@ -25,7 +25,7 @@
{% endif %} {% endif %}
</li> </li>
{% endfor %} {% endfor %}
{% if mod|hasPermission(config.mod.newboard) %} {% if mod|hasPermission(config.mod.newboard) %}
<li style="margin-top:15px"><a href="?/new-board"><strong>{% trans 'Create new board' %}</strong></a></li> <li style="margin-top:15px"><a href="?/new-board"><strong>{% trans 'Create new board' %}</strong></a></li>
{% endif %} {% endif %}
@ -48,16 +48,16 @@
{% else %} {% else %}
<em>{% trans 'no subject' %}</em> <em>{% trans 'no subject' %}</em>
{% endif %} {% endif %}
</a> </a>
<small class="unimportant"> <small class="unimportant">
&mdash; by &mdash; by
{% if post.username %} {% if post.username %}
{{ post.username|e }} {{ post.username|e }}
{% else %} {% else %}
<em>deleted?</em> <em>deleted?</em>
{% endif %} {% endif %}
at at
{{ post.time|date(config.post_date) }} {{ post.time|date(config.post_date) }}
</small> </small>
</li> </li>
{% endfor %} {% endfor %}
@ -69,7 +69,7 @@
<li><a href="?/edit_news">{% trans 'News' %}</a></li> <li><a href="?/edit_news">{% trans 'News' %}</a></li>
<li> <li>
<a href="?/inbox"> <a href="?/inbox">
{% trans 'PM inbox' %} {% trans 'PM inbox' %}
{% if unread_pms > 0 %}<strong>{%endif %}({{ unread_pms }} unread){% if unread_pms > 0 %}</strong>{%endif %} {% if unread_pms > 0 %}<strong>{%endif %}({{ unread_pms }} unread){% if unread_pms > 0 %}</strong>{%endif %}
</a> </a>
</li> </li>
@ -78,7 +78,7 @@
<fieldset> <fieldset>
<legend>{% trans 'Administration' %}</legend> <legend>{% trans 'Administration' %}</legend>
<ul> <ul>
{% if mod|hasPermission(config.mod.reports) %} {% if mod|hasPermission(config.mod.reports) %}
<li> <li>
@ -91,7 +91,9 @@
<li><a href="?/bans">{% trans 'Ban list' %}</a></li> <li><a href="?/bans">{% trans 'Ban list' %}</a></li>
{% endif %} {% endif %}
{% if config.ban_appeals and mod|hasPermission(config.mod.view_ban_appeals) %} {% 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 %} {% endif %}
{% if mod|hasPermission(config.mod.manageusers) %} {% if mod|hasPermission(config.mod.manageusers) %}
<li><a href="?/users">{% trans 'Manage users' %}</a></li> <li><a href="?/users">{% trans 'Manage users' %}</a></li>
@ -116,14 +118,14 @@
{% if mod|hasPermission(config.mod.edit_config) %} {% if mod|hasPermission(config.mod.edit_config) %}
<li><a href="?/config">{% trans 'Configuration' %}</a></li> <li><a href="?/config">{% trans 'Configuration' %}</a></li>
{% endif %} {% endif %}
</ul> </ul>
</fieldset> </fieldset>
{% if mod|hasPermission(config.mod.search) %} {% if mod|hasPermission(config.mod.search) %}
<fieldset> <fieldset>
<legend>{% trans 'Search' %}</legend> <legend>{% trans 'Search' %}</legend>
<ul> <ul>
<li> <li>
{% include 'mod/search_form.html' %} {% include 'mod/search_form.html' %}
@ -135,7 +137,7 @@
{% if config.mod.dashboard_links and config.mod.dashboard_links|length %} {% if config.mod.dashboard_links and config.mod.dashboard_links|length %}
<fieldset> <fieldset>
<legend>{% trans 'Other' %}</legend> <legend>{% trans 'Other' %}</legend>
<ul> <ul>
{% for label,link in config.mod.dashboard_links %} {% for label,link in config.mod.dashboard_links %}
<li><a href="{{ link }}">{{ label }}</a></li> <li><a href="{{ link }}">{{ label }}</a></li>
@ -162,8 +164,8 @@
<legend>Update</legend> <legend>Update</legend>
<ul> <ul>
<li> <li>
A newer version of vichan A newer version of vichan
(<strong>v{{ newer_release.massive }}.{{ newer_release.major }}.{{ newer_release.minor }}</strong>) is available! (<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. See <a href="https://engine.vichan.net">https://engine.vichan.net/</a> for upgrade instructions.
</li> </li>
</ul> </ul>
@ -172,9 +174,8 @@
<fieldset> <fieldset>
<legend>{% trans 'User account' %}</legend> <legend>{% trans 'User account' %}</legend>
<ul> <ul>
<li><a href="?/logout/{{ logout_token }}">{% trans 'Logout' %}</a></li> <li><a href="?/logout/{{ logout_token }}">{% trans 'Logout' %}</a></li>
</ul> </ul>
</fieldset> </fieldset>