mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-17 11:28:41 +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
@ -104,6 +104,9 @@ function mod_dashboard() {
|
|||||||
$query = query('SELECT COUNT(*) FROM ``reports``') or error(db_error($query));
|
$query = query('SELECT COUNT(*) FROM ``reports``') or error(db_error($query));
|
||||||
$args['reports'] = $query->fetchColumn();
|
$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 ($mod['type'] >= ADMIN && $config['check_updates']) {
|
||||||
if (!$config['version'])
|
if (!$config['version'])
|
||||||
error(_('Could not find current version! (Check .installed)'));
|
error(_('Could not find current version! (Check .installed)'));
|
||||||
@ -3020,4 +3023,3 @@ function mod_debug_apc() {
|
|||||||
|
|
||||||
mod_page(_('Debug: APC'), $config['file_mod_debug_apc'], array('cached_vars' => $cached_vars));
|
mod_page(_('Debug: APC'), $config['file_mod_debug_apc'], array('cached_vars' => $cached_vars));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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>
|
||||||
@ -177,4 +179,3 @@
|
|||||||
<li><a href="?/logout/{{ logout_token }}">{% trans 'Logout' %}</a></li>
|
<li><a href="?/logout/{{ logout_token }}">{% trans 'Logout' %}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user