include hd-user-avatar.pug

sib-widget(name='hd-project-team')
  template
    sib-display(
      data-src='${await value}'
      fields='user.account.picture, sup(user.name, isadmin, user.groups), sub(user.profile.city, name)'
      value-isadmin='${await value.is_admin}'

      class-user.name='user-name'
      class-isadmin='tag-admin'
      class-user.groups='tag-group'
      class-user.profile.city='city'

      widget-user.account.picture='hd-user-avatar'
      widget-isadmin='hd-project-user-admin'
      widget-user.groups='hd-project-user-groups'

      multiple-user.groups=''
    )

sib-widget(name='hd-project-user-admin')
  template ${(await value) == "false" ? "" : "Administrator"}

sib-widget(name='hd-project-user-groups')
  template ${await value.name}
