Merge branch 'project-admin-display' into 'staging'
project team displaying is_admin and avatar correctly See merge request startinblox/applications/sib-app!98
This commit is contained in:
commit
9ad8126311
@ -56,6 +56,7 @@
|
|||||||
grid-template-columns: 7vh auto;
|
grid-template-columns: 7vh auto;
|
||||||
grid-template-rows: repeat(2, 5.2vh);
|
grid-template-rows: repeat(2, 5.2vh);
|
||||||
|
|
||||||
|
>[name='user.account.picture'],
|
||||||
>[name='account.picture'] {
|
>[name='account.picture'] {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
|
@ -4,17 +4,22 @@ sib-widget(name='hd-project-team')
|
|||||||
template
|
template
|
||||||
sib-display(
|
sib-display(
|
||||||
data-src='${await value}'
|
data-src='${await value}'
|
||||||
fields='account.picture, sup(user.name, user.groups), sub(user.profile.city, name)'
|
fields='user.account.picture, sup(user.name, is_admin, user.groups), sub(user.profile.city, name)'
|
||||||
|
|
||||||
class-user.name='user-name'
|
class-user.name='user-name'
|
||||||
|
class-is_admin='tag-admin'
|
||||||
class-user.groups='tag-group'
|
class-user.groups='tag-group'
|
||||||
class-user.profile.city='city'
|
class-user.profile.city='city'
|
||||||
|
|
||||||
widget-account.picture='hd-user-avatar'
|
widget-user.account.picture='hd-user-avatar'
|
||||||
|
widget-is_admin='hd-user-admin'
|
||||||
widget-user.groups='hd-user-groups'
|
widget-user.groups='hd-user-groups'
|
||||||
|
|
||||||
multiple-user.groups=''
|
multiple-user.groups=''
|
||||||
)
|
)
|
||||||
|
|
||||||
|
sib-widget(name='hd-user-admin')
|
||||||
|
template ${await value ? "Administrator" : ""}
|
||||||
|
|
||||||
sib-widget(name='hd-user-groups')
|
sib-widget(name='hd-user-groups')
|
||||||
template ${await value.name}
|
template ${await value.name}
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
include hd-user-avatar.pug
|
|
||||||
|
|
||||||
sib-widget(name='project-team-template')
|
|
||||||
template
|
|
||||||
sib-display(
|
|
||||||
data-src='${await value}'
|
|
||||||
fields='account.picture, sup(user.name, is_admin, user.groups), sub(user.profile.city)'
|
|
||||||
|
|
||||||
class-user.name='user-name'
|
|
||||||
class-is_admin='tag-admin'
|
|
||||||
class-user.groups='tag-group'
|
|
||||||
class-user.profile.city='city'
|
|
||||||
|
|
||||||
widget-account.picture='hd-user-avatar'
|
|
||||||
widget-is_admin='hd-user-admin'
|
|
||||||
widget-user.groups='hd-user-groups'
|
|
||||||
|
|
||||||
multiple-user.groups=''
|
|
||||||
)
|
|
||||||
|
|
||||||
sib-widget(name='hd-user-admin')
|
|
||||||
template ${await value ? "Administrator" : ""}
|
|
||||||
|
|
||||||
sib-widget(name='hd-user-groups')
|
|
||||||
template ${await value.name}
|
|
Loading…
Reference in New Issue
Block a user