feat(dashboard): Added average sponsoring
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Nicolai Ort 2023-04-19 15:59:45 +02:00
parent b8de9e0e42
commit 269def20d1
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
3 changed files with 24 additions and 2 deletions

View File

@ -113,6 +113,26 @@
><polyline points="22 12 18 12 15 21 9 3 6 12 2 12" /></svg ><polyline points="22 12 18 12 15 21 9 3 6 12 2 12" /></svg
> >
</StatCard> </StatCard>
<StatCard
title={$_("average-donation")}
value={`${(stats.average_donation / 100).toFixed(2)} €`}
href="/donations/"
>
<svg
stroke="currentColor"
fill="currentColor"
stroke-width="2"
viewBox="0 0 24 24"
stroke-linecap="round"
stroke-linejoin="round"
size="24"
class="stroke-current text-grey-500"
height="24"
width="24"
xmlns="http://www.w3.org/2000/svg"
><polyline points="22 12 18 12 15 21 9 3 6 12 2 12" /></svg
>
</StatCard>
<StatCard <StatCard
title={$_("total-donations")} title={$_("total-donations")}
value={`${(stats.total_donation / 100).toFixed(2)} €`} value={`${(stats.total_donation / 100).toFixed(2)} €`}

View File

@ -492,5 +492,6 @@
"zip-postal-code": "Postleitzahl", "zip-postal-code": "Postleitzahl",
"total-donors": "gesamte Sponsor:innen", "total-donors": "gesamte Sponsor:innen",
"total-donation-count": "Gesamte Sponsorings", "total-donation-count": "Gesamte Sponsorings",
"average-distance": "Durchschnittliche Strecke/Läufer:in" "average-distance": "Durchschnittliche Strecke/Läufer:in",
"average-donation": "Durchschnittliches Sponsoring"
} }

View File

@ -492,5 +492,6 @@
"zip-postal-code": "ZIP/ postal code", "zip-postal-code": "ZIP/ postal code",
"total-donors": "total donors", "total-donors": "total donors",
"total-donation-count": "total donations (count)", "total-donation-count": "total donations (count)",
"average-distance": "average distance" "average-distance": "average distance",
"average-donation": "average donation"
} }