From 8aea2c19a8674d2f6a130e907bcaf612c84d6234 Mon Sep 17 00:00:00 2001
From: Remmy Cat Stock <3317423+remmycat@users.noreply.github.com>
Date: Thu, 13 Oct 2022 19:21:00 +0200
Subject: [PATCH] Add participants count to user results table
---
app/routes/u.$identifier/results.tsx | 2 ++
public/locales/de/user.json | 1 +
public/locales/en/user.json | 1 +
3 files changed, 4 insertions(+)
diff --git a/app/routes/u.$identifier/results.tsx b/app/routes/u.$identifier/results.tsx
index a38db68dc..fac0f2620 100644
--- a/app/routes/u.$identifier/results.tsx
+++ b/app/routes/u.$identifier/results.tsx
@@ -23,6 +23,7 @@ export default function UserResultsPage() {
{t("results.placing")} |
{t("results.team")} |
{t("results.tournament")} |
+ {t("results.participants")} |
{t("results.date")} |
{t("results.mates")} |
@@ -37,6 +38,7 @@ export default function UserResultsPage() {
{result.eventName}
+ {result.participantCount} |
{databaseTimestampToDate(result.startTime).toLocaleDateString(
i18n.language,
diff --git a/public/locales/de/user.json b/public/locales/de/user.json
index b38e807fe..e34fa88cf 100644
--- a/public/locales/de/user.json
+++ b/public/locales/de/user.json
@@ -13,6 +13,7 @@
"results.placing": "Platzierung",
"results.team": "Team",
"results.tournament": "Turnier",
+ "results.participants": "Teilnehmer",
"results.date": "Datum",
"results.mates": "Mitspieler",
diff --git a/public/locales/en/user.json b/public/locales/en/user.json
index 51c5a48c6..760f2a9b5 100644
--- a/public/locales/en/user.json
+++ b/public/locales/en/user.json
@@ -13,6 +13,7 @@
"results.placing": "Placing",
"results.team": "Team",
"results.tournament": "Tournament",
+ "results.participants": "Participants",
"results.date": "Date",
"results.mates": "Mates",
|