2018-10-05 09:55:29 +00:00
|
|
|
#logo
|
2019-05-20 10:25:11 +00:00
|
|
|
sib-link(next='members')
|
2020-01-16 19:56:54 +00:00
|
|
|
img(src=`${clientLogo || '/images/logo.png'}` style=`height:${clientLogoHeight || '32px'}`)
|
2018-10-05 09:55:29 +00:00
|
|
|
|
2019-05-20 13:06:07 +00:00
|
|
|
//- #search-bar
|
|
|
|
//- input#search-input(type='search')
|
|
|
|
//- i#search-icon.icon-magnifier(aria-hidden='true')
|
|
|
|
//- i#close-search-icon.icon-close(aria-hidden='true')
|
2018-10-05 09:55:29 +00:00
|
|
|
|
2020-02-19 16:03:47 +00:00
|
|
|
sib-notifications.notLoggedIn(
|
2019-07-23 13:08:59 +00:00
|
|
|
nested-field="inbox"
|
2019-02-28 09:44:32 +00:00
|
|
|
bind-user
|
|
|
|
)
|
2018-10-05 09:55:29 +00:00
|
|
|
|
2020-05-08 13:27:44 +00:00
|
|
|
include templates/hubl-user-avatar.pug
|
2019-04-16 12:56:25 +00:00
|
|
|
|
2020-01-20 12:57:03 +00:00
|
|
|
details#user-controls.notLoggedIn
|
2019-03-11 18:48:51 +00:00
|
|
|
summary(tabindex='0' role='button')
|
|
|
|
sib-display#user-controls__profile(
|
2020-04-02 16:09:23 +00:00
|
|
|
fields='first_name, account.picture'
|
2020-05-08 13:27:44 +00:00
|
|
|
widget-account.picture='hubl-user-avatar'
|
2019-03-11 18:48:51 +00:00
|
|
|
bind-user
|
|
|
|
)
|
2019-06-18 06:48:32 +00:00
|
|
|
#user-controls__panel
|
2020-02-10 12:59:23 +00:00
|
|
|
nav(role="user's functionalities menu")
|
|
|
|
ul
|
|
|
|
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
|
|
|
|
li
|
2020-04-21 08:24:08 +00:00
|
|
|
sib-link(next='my-profile') Mon profil
|
2020-02-10 12:59:23 +00:00
|
|
|
//-li
|
|
|
|
sib-link(next='user-settings') Settings
|
2020-05-27 09:17:44 +00:00
|
|
|
|
2020-02-10 12:59:23 +00:00
|
|
|
li
|
2020-04-21 08:24:08 +00:00
|
|
|
sib-link(next='admin') Administration
|
2020-05-27 09:17:44 +00:00
|
|
|
li
|
|
|
|
sib-link(next='about') A propos
|
2020-05-27 13:07:30 +00:00
|
|
|
button(role='log out' onclick="document.querySelector('sib-auth').logout();") Se déconnecter
|
2018-12-10 12:30:15 +00:00
|
|
|
|
2020-04-21 08:24:08 +00:00
|
|
|
button.loggedIn(role='log in' onclick="document.querySelector('sib-auth').login();") Se connecter
|
2019-04-03 13:28:47 +00:00
|
|
|
|
2020-01-20 12:57:03 +00:00
|
|
|
button.notLoggedIn.mobile-menu-icon.icon-menu#toggleMainMenu
|
|
|
|
|
2020-02-19 16:03:47 +00:00
|
|
|
sib-auth(style='display:none!important')
|
2019-04-03 13:28:47 +00:00
|
|
|
sib-auth-provider(
|
2019-06-24 11:56:49 +00:00
|
|
|
data-authority=`${authority}`
|
2020-02-03 13:39:14 +00:00
|
|
|
data-id=`${authorityName || "authority"}`
|
2020-05-08 13:27:44 +00:00
|
|
|
data-client-name=`${clientName || "Hubl"}`
|
2019-04-03 13:28:47 +00:00
|
|
|
)
|
|
|
|
|