Browse Source

Some corrections to total user points.

StaticallyTypedRice-StaticallyTypedRice-webclient
Dessalines 2 years ago
parent
commit
2286394f79
  1. 12
      ui/src/components/user.tsx
  2. 1
      ui/src/translations/de.ts
  3. 1
      ui/src/translations/en.ts

12
ui/src/components/user.tsx

@ -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

@ -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

@ -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…
Cancel
Save