diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 2016b2a9..1e1866d9 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -115,6 +115,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)')); diff --git a/templates/mod/dashboard.html b/templates/mod/dashboard.html index 7066adcd..488f605b 100644 --- a/templates/mod/dashboard.html +++ b/templates/mod/dashboard.html @@ -26,15 +26,17 @@ {% if mod|hasPermission(config.mod.reports) %}
  • {% if reports > 0 %}{% endif %} - {% trans 'Report queue' %} ({{ reports }}) - {% if reports > 0 %}{% endif %} + {% trans 'Report queue' %} ({{ reports }}) + {% if reports > 0 %}{% endif %}
  • {% endif %} {% if mod|hasPermission(config.mod.view_banlist) %}
  • {% trans 'Ban list' %}
  • {% endif %} {% if config.ban_appeals and mod|hasPermission(config.mod.view_ban_appeals) %} -
  • {% trans 'Ban appeals' %}
  • + {% if appeals > 0 %}{% endif %} +
  • {% trans 'Ban appeals' %} ({{ appeals }})
  • + {% if appeals > 0 %}
    {% endif %} {% endif %} {% if mod|hasPermission(config.mod.manageusers) %}
  • {% trans 'Manage users' %}