mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +01:00
Show ban appeal count on mod dashboard
This commit is contained in:
parent
f7a8cb258f
commit
1ed75a58c2
@ -104,6 +104,9 @@ function mod_dashboard() {
|
||||
$query = query('SELECT COUNT(*) FROM ``reports``') or error(db_error($query));
|
||||
$args['reports'] = $query->fetchColumn();
|
||||
|
||||
$query = query('SELECT COUNT(*) FROM ``ban_appeals``') or error(db_error($query));
|
||||
$args['appeals'] = $query->fetchColumn();
|
||||
|
||||
if ($mod['type'] >= ADMIN && $config['check_updates']) {
|
||||
if (!$config['version'])
|
||||
error(_('Could not find current version! (Check .installed)'));
|
||||
|
@ -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) %}
|
||||
{% 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>
|
||||
|
Loading…
Reference in New Issue
Block a user