From 2d52fbdfcb91d6bcb497893550bc187554fd7589 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Tue, 1 Oct 2019 22:54:13 +0300 Subject: [PATCH] Update card with user information --- src/lang/en.js | 11 +++- src/views/users/show.vue | 137 +++++++++++++++++++++------------------ 2 files changed, 81 insertions(+), 67 deletions(-) diff --git a/src/lang/en.js b/src/lang/en.js index 8088e441..c1ecd22a 100644 --- a/src/lang/en.js +++ b/src/lang/en.js @@ -238,11 +238,16 @@ export default { tags: 'Tags', moderator: 'Moderator', admin: 'Admin', - local: 'Local', + local: 'local', + external: 'external', + localUppercase: 'Local', nickname: 'Nickname', - deactivated: 'Deactivated', recentStatuses: 'Recent Statues', - showPrivateStatuses: 'Show private statuses' + showPrivateStatuses: 'Show private statuses', + roles: 'Roles', + activeUppercase: 'Active', + active: 'active', + deactivated: 'deactivated' }, usersFilter: { inputPlaceholder: 'Select filter', diff --git a/src/views/users/show.vue b/src/views/users/show.vue index 049ae02f..00ca72b4 100644 --- a/src/views/users/show.vue +++ b/src/views/users/show.vue @@ -5,70 +5,66 @@

{{ user.display_name }}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ID - {{ user.id }} -
{{ $t('userProfile.tags') }} - {{ tag }} - None -
{{ $t('userProfile.moderator') }} - - -
{{ $t('userProfile.admin') }} - - -
{{ $t('userProfile.local') }} - - -
{{ $t('userProfile.deactivated') }} - - -
{{ $t('userProfile.nickname') }} - {{ user.nickname }} -
-
+ + - -

{{ $t('userProfile.recentStatuses') }}

- - - {{ $t('userProfile.showPrivateStatuses') }} - - -
- + + +

{{ $t('userProfile.recentStatuses') }}

+ + + {{ $t('userProfile.showPrivateStatuses') }} + + +
@@ -168,12 +164,25 @@ table { width: 100%; } } +.recent-statuses-header { + margin-top: 10px; +} .statuses { - padding-right: 20px; + padding: 0 20px 0 0; } .show-private { text-align: right; line-height: 67px; padding-right: 20px; } +.user-profile-card { + margin-left: 15px; + margin-right: 20px; +} +.user-profile-table { + margin: 0; +} +.user-profile-tag { + margin: 0 4px 4px 0; +}