Some corrections to total user points.
This commit is contained in:
parent
ae6c6ea055
commit
2286394f79
3 changed files with 8 additions and 6 deletions
12
ui/src/components/user.tsx
vendored
12
ui/src/components/user.tsx
vendored
|
@ -356,11 +356,15 @@ export class User extends Component<any, UserState> {
|
|||
<div>
|
||||
{i18n.t('joined')} <MomentTime data={user} />
|
||||
</div>
|
||||
<div>
|
||||
{i18n.t('total_number_of_points', { count: (user.post_score + user.comment_score) })}
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<div class="table-responsive mt-1">
|
||||
<table class="table table-bordered table-sm mt-2 mb-0">
|
||||
<tr>
|
||||
<td class="text-center" colSpan={2}>
|
||||
{i18n.t('number_of_points', {
|
||||
count: user.post_score + user.comment_score,
|
||||
})}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{i18n.t('number_of_points', { count: user.post_score })}
|
||||
|
|
1
ui/src/translations/de.ts
vendored
1
ui/src/translations/de.ts
vendored
|
@ -74,7 +74,6 @@ export const de = {
|
|||
number_of_users: '{{count}} Benutzer',
|
||||
number_of_subscribers: '{{count}} Abonnenten',
|
||||
number_of_points: '{{count}} Punkte',
|
||||
total_number_of_points: '{{count}} Gesamtpunkte',
|
||||
number_online: '{{count}} Benutzer online',
|
||||
name: 'Name',
|
||||
title: 'Titel',
|
||||
|
|
1
ui/src/translations/en.ts
vendored
1
ui/src/translations/en.ts
vendored
|
@ -81,7 +81,6 @@ export const en = {
|
|||
number_of_users: '{{count}} Users',
|
||||
number_of_subscribers: '{{count}} Subscribers',
|
||||
number_of_points: '{{count}} Points',
|
||||
total_number_of_points: '{{count}} Total Points',
|
||||
number_online: '{{count}} Users Online',
|
||||
name: 'Name',
|
||||
title: 'Title',
|
||||
|
|
Loading…
Reference in a new issue