From 2d52fbdfcb91d6bcb497893550bc187554fd7589 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Tue, 1 Oct 2019 22:54:13 +0300 Subject: [PATCH 1/3] 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; +} From df26ac0858636455207a57627b9cc27c74f70393 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Fri, 4 Oct 2019 18:49:03 +0300 Subject: [PATCH 2/3] Display role tags --- src/views/users/show.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/users/show.vue b/src/views/users/show.vue index 00ca72b4..a9dada5a 100644 --- a/src/views/users/show.vue +++ b/src/views/users/show.vue @@ -32,8 +32,12 @@ {{ $t('userProfile.roles') }} -