include hd-user-avatar.pug

sib-widget(name='captain-template')
  template
    sib-display.project-profile-user-avatar(
      data-src="${value ? value['@id'] : ''}"
      fields='account.picture',
      widget-account.picture='hd-user-avatar'
    )
    div(name='user.thumb')
      sib-display(
        data-src="${value ? value['@id'] : ''}"
        fields='name'
      )
      sib-display(
        data-src="${value ? value['@id'] : ''}",
        fields='name'
        nested-field="groups"
      )
    sib-display(
      data-src="${value ? value['@id'] : ''}"
      fields='username'
    )
