include hubl-user-avatar.pug

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

      class-account.picture='avatar user-thumb__picture'
      class-name='user-thumb__name'
      class-isadmin='user-thumb__admin'
      class-profile.city='user-thumb__city'

      widget-account.picture='hubl-user-avatar'
      widget-isadmin='hubl-circle-user-admin'
    )

solid-widget(name='hubl-circle-user-admin')
  template ${(await value) != "false" ? "Administrateur" : ""}
