translate and style user count

This commit is contained in:
Alina Beck 2019-12-03 13:25:20 +03:00
parent 9801369343
commit d685ff9e7b
3 changed files with 31 additions and 13 deletions

View File

@ -6,15 +6,17 @@
cellpadding="0" cellpadding="0"
> >
<colgroup> <colgroup>
<col width="5%" /> <col width="4%" />
<col width="12%" />
<col width="40%" /> <col width="40%" />
<col width="20%" /> <col width="16%" />
<col width="20%" /> <col width="16%" />
<col width="15%" /> <col width="12%" />
</colgroup> </colgroup>
<thead class="ds-table-col ds-table-head-col"> <thead class="ds-table-col ds-table-head-col">
<tr valign="top"> <tr valign="top">
<th class="ds-table-head-col"></th> <th class="ds-table-head-col"></th>
<th class="ds-table-head-col">{{ $t('moderation.reports.submitter') }}</th>
<th class="ds-table-head-col">{{ $t('moderation.reports.content') }}</th> <th class="ds-table-head-col">{{ $t('moderation.reports.content') }}</th>
<th class="ds-table-head-col">{{ $t('moderation.reports.author') }}</th> <th class="ds-table-head-col">{{ $t('moderation.reports.author') }}</th>
<th class="ds-table-head-col">{{ $t('moderation.reports.status') }}</th> <th class="ds-table-head-col">{{ $t('moderation.reports.status') }}</th>
@ -43,6 +45,14 @@
/> />
</ds-text> </ds-text>
</td> </td>
<td class="ds-table-col">
<span class="user-count">
{{ $t('moderation.reports.numberOfUsers', { count: report.filed.length }) }}
</span>
<ds-button size="small" @click="showFiledReports = !showFiledReports">
{{ $t('moderation.reports.moreDetails') }}
</ds-button>
</td>
<td class="ds-table-col"> <td class="ds-table-col">
<div v-if="isPost(report.resource) || isComment(report.resource)"> <div v-if="isPost(report.resource) || isComment(report.resource)">
<nuxt-link <nuxt-link
@ -71,13 +81,6 @@
/> />
</client-only> </client-only>
</div> </div>
<div class="nested-table-toggle">
<counter-icon icon="flag" :count="report.filed.length">
<ds-button ghost primary @click="showFiledReports = !showFiledReports">
{{ $t('moderation.reports.moreDetails') }}
</ds-button>
</counter-icon>
</div>
</td> </td>
<td class="ds-table-col"> <td class="ds-table-col">
<client-only> <client-only>
@ -219,6 +222,11 @@ export default {
} }
} }
.user-count {
display: block;
margin-bottom: $space-xx-small;
}
.nested-table-toggle { .nested-table-toggle {
position: absolute; position: absolute;
left: 0; left: 0;

View File

@ -334,6 +334,15 @@
"reasonCategory": "Kategorie", "reasonCategory": "Kategorie",
"reasonDescription": "Beschreibung", "reasonDescription": "Beschreibung",
"submitter": "Gemeldet von", "submitter": "Gemeldet von",
"numberOfUsers": "{count} Nutzern",
"filterLabel": {
"all": "Alle",
"unreviewed": "Nicht bearbeitet",
"reviewed": "Bearbeitet",
"closed": "Abgeschlossen"
},
"reportedOn": "Datum",
"moreDetails": "Details öffnen",
"decideModal": { "decideModal": {
"submit": "Bestätige Entscheidung", "submit": "Bestätige Entscheidung",
"cancel": "Abbruch", "cancel": "Abbruch",

View File

@ -500,6 +500,7 @@
"reasonCategory": "Category", "reasonCategory": "Category",
"reasonDescription": "Description", "reasonDescription": "Description",
"submitter": "Reported by", "submitter": "Reported by",
"numberOfUsers": "{count} users",
"filterLabel": { "filterLabel": {
"all": "All", "all": "All",
"unreviewed": "Unreviewed", "unreviewed": "Unreviewed",
@ -507,7 +508,7 @@
"closed": "Closed" "closed": "Closed"
}, },
"reportedOn": "Date", "reportedOn": "Date",
"moreDetails": "Report Details", "moreDetails": "View Details",
"decideModal": { "decideModal": {
"submit": "Confirm decision", "submit": "Confirm decision",
"cancel": "Cancel", "cancel": "Cancel",