include hd-user-avatar.pug

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

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

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

      multiple-groups=''
    )

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

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