include hubl-user-avatar.pug

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

      class-user.account.picture='avatar user-thumb__picture'

      class-user.name='user-thumb__name'
      class-isadmin='user-thumb__admin'
      class-user.profile.city='user-thumb__city'
      class-name='user-thumb__lead'

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

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