hubl/src/header.pug

42 lines
1.4 KiB
Plaintext
Raw Normal View History

.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
sib-notifications.notLoggedIn(
2019-07-23 13:08:59 +00:00
nested-field="inbox"
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
details#user-controls.notLoggedIn
summary(tabindex='0' role='button')
sib-display#user-controls__profile(
2020-04-02 16:09:23 +00:00
fields='first_name, account.picture'
class-first_name='flex'
class-account.picture='avatar'
2020-05-08 13:27:44 +00:00
widget-account.picture='hubl-user-avatar'
bind-user
)
#user-controls__panel
nav(role="user's functionalities menu")
ul
2020-05-27 06:44:54 +00:00
if (endpoints.uploads || (endpoints.get && endpoints.get.uploads)) && (endpoints.skills || (endpoints.get && endpoints.get.skills)) && (endpoints.users || (endpoints.get && endpoints.get.users))
li
2020-05-27 06:44:54 +00:00
sib-link(next='profile') Mon profil
li
2020-04-21 08:24:08 +00:00
sib-link(next='admin') Administration
button(role='log out' onclick="document.querySelector('sib-auth').logout();") Se déconnecter
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
button.notLoggedIn.mobile-menu-icon.icon-menu#toggleMainMenu
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}`
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
)