diff --git a/src/inc/locales/de.json b/src/inc/locales/de.json index 41bc73c..3520ba9 100644 --- a/src/inc/locales/de.json +++ b/src/inc/locales/de.json @@ -462,6 +462,7 @@ "stat_comments": "Gesamt Kommentare", "stat_favs": "Gesamt Favoriten", "stat_disk_usage": "Dateigröße Gesamt", + "stat_users": "Gesamt Benutzer", "most_favorited": "Meiste Favs", "favs": "Favs", "top_xd": "Top xD-Score" diff --git a/src/inc/locales/en.json b/src/inc/locales/en.json index 617172e..a790af7 100644 --- a/src/inc/locales/en.json +++ b/src/inc/locales/en.json @@ -466,6 +466,7 @@ "stat_comments": "Total Comments", "stat_favs": "Total Favorites", "stat_disk_usage": "Total File Size", + "stat_users": "Total Users", "most_favorited": "Most Favorited", "favs": "favs", "top_xd": "Top xD Scores" diff --git a/src/inc/locales/nl.json b/src/inc/locales/nl.json index 0522078..514f8e7 100644 --- a/src/inc/locales/nl.json +++ b/src/inc/locales/nl.json @@ -462,6 +462,7 @@ "stat_comments": "Totaal aantal reacties", "stat_favs": "Totaal aantal favorieten", "stat_disk_usage": "Totale Bestandsgrootte", + "stat_users": "Totaal Gebruikers", "most_favorited": "Meest Gefavoriet", "favs": "favorieten", "top_xd": "Top xD-scores" diff --git a/src/inc/locales/zange.json b/src/inc/locales/zange.json index 7f09800..3c6c12c 100644 --- a/src/inc/locales/zange.json +++ b/src/inc/locales/zange.json @@ -463,6 +463,7 @@ "stat_comments": "Gesamtanzahl Kommentare", "stat_favs": "Gesamtanzahl Favoriten", "stat_disk_usage": "Dateigröße Gesamt", + "stat_users": "Gesamt Benutzer", "most_favorited": "Am häufigsten favorisiert", "favs": "Favoriten", "top_xd": "Beste xD-Punktestände" diff --git a/src/inc/routes/ranking.mjs b/src/inc/routes/ranking.mjs index d0b3f06..122c3f6 100644 --- a/src/inc/routes/ranking.mjs +++ b/src/inc/routes/ranking.mjs @@ -78,6 +78,11 @@ export default (router, tpl) => { where items.active = true `)[0].total; + const totalUsers = +(await db` + select count(*) as total + from "user" + `)[0].total; + const hoster = await db` with t as ( select @@ -135,6 +140,7 @@ export default (router, tpl) => { xdtop, totalComments, totalFavs, + totalUsers, enable_nsfl: config.enable_nsfl, diskSize: cachedDiskSize, tmp: null, diff --git a/views/ranking.html b/views/ranking.html index e436f6a..205ca39 100644 --- a/views/ranking.html +++ b/views/ranking.html @@ -73,6 +73,7 @@ {{ t('ranking.stat_total') }}{{ stats.total }} {{ t('ranking.stat_comments') }}{{ totalComments }} + {{ t('ranking.stat_users') }}{{ totalUsers }} {{ t('ranking.stat_favs') }}{{ totalFavs }} {{ t('ranking.stat_tagged') }}{{ stats.tagged }} {{ t('ranking.stat_untagged') }}{{ stats.untagged }}