include hubl-user-avatar.pug

solid-widget(name='hubl-captain')
  template
    solid-display.user-thumb(
      data-src="${await value}"
      fields='account.picture, sup(name), sub(is_lead)'

      class-account.picture='avatar user-thumb__picture'
      class-name='user-thumb__name'
      class-is_lead='user-thumb__lead'

      widget-account.picture='hubl-user-avatar'
      value-is_lead='Capitaine'
    )
