Stats card: Reorder total reviews count position (#2834)

This commit is contained in:
Alexandr Garbuzov 2023-06-16 09:43:07 +03:00 committed by GitHub
parent 22a12e1ade
commit 7a89ceedc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,6 +160,16 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => {
value: totalPRs,
id: "prs",
};
if (show_total_reviews) {
STATS.reviews = {
icon: icons.reviews,
label: i18n.t("statcard.reviews"),
value: totalReviews,
id: "reviews",
};
}
STATS.issues = {
icon: icons.issues,
label: i18n.t("statcard.issues"),
@ -173,16 +183,6 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => {
id: "contribs",
};
// Extra stats items.
if (show_total_reviews) {
STATS.reviews = {
icon: icons.reviews,
label: i18n.t("statcard.reviews"),
value: totalReviews,
id: "reviews",
};
}
const longLocales = [
"cn",
"es",