hubl/src/header.pug

47 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-10-05 09:55:29 +00:00
#logo
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
sib-notifications(
2019-07-23 13:08:59 +00:00
nested-field="inbox"
bind-user
)
2018-10-05 09:55:29 +00:00
include templates/hd-user-avatar.pug
2019-04-16 12:56:25 +00:00
details#user-controls.notLoggedIn
summary(tabindex='0' role='button')
sib-display#user-controls__profile(
2019-12-04 15:11:05 +00:00
fields='firstName, account.picture'
widget-account.picture='hd-user-avatar'
bind-user
)
#user-controls__panel
nav(role="user's functionalities menu")
ul
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
li
sib-link(next='my-profile') My profile
//-li
sib-link(next='user-settings') Settings
li
sib-link(next='admin') Admin
button(role='log out' onclick="document.querySelector('sib-auth').logout();") Log out
button(role='log in' onclick="document.querySelector('sib-auth').login();") Login
2019-04-03 13:28:47 +00:00
button.notLoggedIn.mobile-menu-icon.icon-menu#toggleMainMenu
2019-04-03 13:28:47 +00:00
sib-auth
sib-auth-provider(
2019-06-24 11:56:49 +00:00
data-authority=`${authority}`
data-id=`${authorityName || "authority"}`
data-client-name=`${clientName || "SIB App"}`
2019-04-03 13:28:47 +00:00
)