Display creation date in user view

This commit is contained in:
Robert Schäfer 2019-07-13 14:14:21 +02:00
parent f9969b964c
commit 5da5b8658e
3 changed files with 9 additions and 2 deletions

View File

@ -196,7 +196,8 @@
"columns": { "columns": {
"name": "Name", "name": "Name",
"slug": "Slug", "slug": "Slug",
"role": "Rolle" "role": "Rolle",
"createdAt": "Erstellt am"
} }
}, },
"empty": "Keine Benutzer gefunden" "empty": "Keine Benutzer gefunden"

View File

@ -197,7 +197,8 @@
"columns": { "columns": {
"name": "Name", "name": "Name",
"slug": "Slug", "slug": "Slug",
"role": "Role" "role": "Role",
"createdAt": "Created at"
} }
}, },
"empty": "No users found" "empty": "No users found"

View File

@ -43,6 +43,9 @@
<b>{{ scope.row.slug | truncate(20) }}</b> <b>{{ scope.row.slug | truncate(20) }}</b>
</nuxt-link> </nuxt-link>
</template> </template>
<template slot="createdAt" slot-scope="scope">
{{ scope.row.createdAt | dateTime }}
</template>
</ds-table> </ds-table>
<ds-flex direction="row-reverse"> <ds-flex direction="row-reverse">
<ds-flex-item width="50px"> <ds-flex-item width="50px">
@ -92,6 +95,7 @@ export default {
index: '#', index: '#',
name: this.$t('admin.users.table.columns.name'), name: this.$t('admin.users.table.columns.name'),
slug: this.$t('admin.users.table.columns.slug'), slug: this.$t('admin.users.table.columns.slug'),
createdAt: this.$t('admin.users.table.columns.createdAt'),
contributionsCount: { contributionsCount: {
label: '🖉', label: '🖉',
align: 'right', align: 'right',
@ -121,6 +125,7 @@ export default {
name name
slug slug
role role
createdAt
contributionsCount contributionsCount
commentedCount commentedCount
shoutedCount shoutedCount