#logo
  sib-link(next='members')
    img(src='/images/logo.png' width=111 height=32)

//- #search-bar
//-   input#search-input(type='search')
//-   i#search-icon.icon-magnifier(aria-hidden='true')
//-   i#close-search-icon.icon-close(aria-hidden='true')

sib-notifications(
  nested-field="inbox"
  bind-user
)

include templates/hd-user-avatar.pug

details#user-controls
  summary(tabindex='0' role='button')
    sib-display#user-controls__profile(
      fields='firstName, account.picture'
      extra-context='{firstName:"first_name"}'
      widget-account.picture='hd-user-avatar'
      bind-user
    )
  #user-controls__panel
    include page-user-panel.pug

button(role='log in' onclick="document.querySelector('sib-auth').login();") Login

sib-auth
  sib-auth-provider(
    data-authority=`${authority}`
    data-id=`${authorityName || "paris"}`
    data-client-name=`${clientName || "SIB App"}`
  )

