2020-12-04 14:44:45 +00:00
|
|
|
//-.segment.lg-three-quarter.float-left.align-middle
|
2020-11-16 17:48:42 +00:00
|
|
|
.logo
|
|
|
|
solid-link(next='dashboard')
|
2020-11-23 11:03:34 +00:00
|
|
|
img(src=`${clientLogo || '/images/logo.png'}` style=`max-height:${clientLogoHeight || '52px'}`)
|
2020-11-16 17:48:42 +00:00
|
|
|
|
|
|
|
span.tag.beta.reversed.color-primary(data-trans='header.beta')
|
|
|
|
|
2020-12-04 14:44:45 +00:00
|
|
|
//-.segment.lg-auto.float-right
|
2020-11-23 11:03:34 +00:00
|
|
|
.segment.lg-auto.float-left.margin-right.align-middle
|
2020-11-16 17:48:42 +00:00
|
|
|
solid-notifications.notLoggedIn(
|
|
|
|
nested-field="inbox"
|
|
|
|
bind-user
|
|
|
|
)
|
|
|
|
|
2020-11-17 13:45:36 +00:00
|
|
|
.segment.lg-auto.float-left.margin-left.text-bold.text-small.text-color-heading
|
|
|
|
details#user-controls.notLoggedIn.segment
|
|
|
|
summary.segment.padding(tabindex='0' role='button')
|
2020-11-16 17:48:42 +00:00
|
|
|
solid-display#user-controls__profile(
|
|
|
|
fields='first_name, account.picture'
|
2020-11-17 18:00:35 +00:00
|
|
|
class-first_name='text-letter-spacing-larger'
|
2020-11-17 13:45:36 +00:00
|
|
|
class-account.picture='avatar small margin-right-small'
|
2020-11-16 17:48:42 +00:00
|
|
|
widget-account.picture='hubl-user-avatar'
|
|
|
|
bind-user
|
|
|
|
)
|
|
|
|
#user-controls__panel
|
|
|
|
nav(role="user's functionalities menu")
|
|
|
|
ul
|
|
|
|
if (endpoints.uploads || (endpoints.get && endpoints.get.uploads)) && (endpoints.skills || (endpoints.get && endpoints.get.skills)) && (endpoints.users || (endpoints.get && endpoints.get.users))
|
2020-11-23 21:16:26 +00:00
|
|
|
li.border-bottom
|
2020-11-17 13:45:36 +00:00
|
|
|
solid-link.segment.padding(next='profile' data-trans='header.myProfile')
|
2020-11-23 21:16:26 +00:00
|
|
|
li.border-bottom
|
2020-11-17 13:45:36 +00:00
|
|
|
solid-link.segment.padding(next='admin' data-trans='header.admin')
|
2020-11-23 21:16:26 +00:00
|
|
|
ul
|
|
|
|
if (endpoints.users || (endpoints.get && endpoints.get.users))
|
|
|
|
solid-route(name='admin-communities')
|
|
|
|
li.segment.padding.text-normal
|
|
|
|
a.icon.icon-people.icon-color-third(data-trans='admin.menuRight.community')
|
|
|
|
if endpoints.circles || (endpoints.get && endpoints.get.circles)
|
|
|
|
solid-route(name='admin-circles')
|
|
|
|
li.segment.padding.text-normal
|
|
|
|
a.icon.icon-globe.icon-color-third(data-trans='admin.menuRight.circles')
|
|
|
|
if endpoints.projects || (endpoints.get && endpoints.get.projects)
|
|
|
|
solid-route(name='admin-projects')
|
|
|
|
li.segment.padding.text-normal
|
|
|
|
a.icon.icon-folder-alt.icon-color-third(data-trans='admin.menuRight.projects')
|
|
|
|
li.border-bottom
|
2020-11-17 13:45:36 +00:00
|
|
|
solid-link.segment.padding(next='about' data-trans='header.about')
|
|
|
|
button.segment.padding.text-bold.text-color-heading(role='log out' onclick="document.querySelector('sib-auth').logout();" data-trans='header.logOut')
|
2020-11-16 17:48:42 +00:00
|
|
|
|
|
|
|
button.loggedIn.segment.float-right(role='log in' onclick="document.querySelector('sib-auth').login();" data-trans='header.logIn')
|
|
|
|
|
|
|
|
button.notLoggedIn.mobile-menu-icon.icon-menu#toggleMainMenu
|
|
|
|
|
|
|
|
sib-auth(style='display:none!important')
|
|
|
|
sib-auth-provider(
|
|
|
|
data-authority=`${authority}`
|
|
|
|
data-id=`${authorityName || "authority"}`
|
|
|
|
data-client-name=`${clientName || "Hubl"}`
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//-.header-left
|
2020-09-28 12:47:37 +00:00
|
|
|
.logo
|
|
|
|
solid-link(next='dashboard')
|
2020-11-17 15:40:30 +00:00
|
|
|
img(src=`${clientLogo || '/images/logo.webp'}` style=`max-height:${clientLogoHeight || '74px'}`)
|
2020-09-28 12:47:37 +00:00
|
|
|
|
2020-10-21 13:31:05 +00:00
|
|
|
span.beta-tag(data-trans='header.beta')
|
2018-10-05 09:55:29 +00:00
|
|
|
|
2020-11-16 17:48:42 +00:00
|
|
|
//-solid-notifications.notLoggedIn(
|
2019-07-23 13:08:59 +00:00
|
|
|
nested-field="inbox"
|
2019-02-28 09:44:32 +00:00
|
|
|
bind-user
|
2020-11-16 17:48:42 +00:00
|
|
|
//-)
|
2018-10-05 09:55:29 +00:00
|
|
|
|
2020-07-09 13:49:56 +00:00
|
|
|
//- Templates for notifications from circles and from other users
|
2020-09-24 10:56:19 +00:00
|
|
|
include views/notifications/message-circle.pug
|
|
|
|
include views/notifications/message-private.pug
|
2020-07-09 13:49:56 +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-11-16 17:48:42 +00:00
|
|
|
//-details#user-controls.notLoggedIn
|
2019-03-11 18:48:51 +00:00
|
|
|
summary(tabindex='0' role='button')
|
2020-06-18 18:02:54 +00:00
|
|
|
solid-display#user-controls__profile(
|
2020-04-02 16:09:23 +00:00
|
|
|
fields='first_name, account.picture'
|
2020-05-18 08:47:43 +00:00
|
|
|
class-first_name='flex'
|
|
|
|
class-account.picture='avatar'
|
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
|
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))
|
2020-02-10 12:59:23 +00:00
|
|
|
li
|
2020-10-21 13:31:05 +00:00
|
|
|
solid-link(next='profile' data-trans='header.myProfile')
|
2020-02-10 12:59:23 +00:00
|
|
|
li
|
2020-10-21 13:31:05 +00:00
|
|
|
solid-link(next='admin' data-trans='header.admin')
|
2020-05-27 09:17:44 +00:00
|
|
|
li
|
2020-10-21 13:31:05 +00:00
|
|
|
solid-link(next='about' data-trans='header.about')
|
|
|
|
button(role='log out' onclick="document.querySelector('sib-auth').logout();" data-trans='header.logOut')
|
2018-12-10 12:30:15 +00:00
|
|
|
|
2020-11-16 17:48:42 +00:00
|
|
|
//-button.loggedIn(role='log in' onclick="document.querySelector('sib-auth').login();" data-trans='header.logIn')
|
2019-04-03 13:28:47 +00:00
|
|
|
|
2020-11-16 17:48:42 +00:00
|
|
|
//-button.notLoggedIn.mobile-menu-icon.icon-menu#toggleMainMenu
|
2020-01-20 12:57:03 +00:00
|
|
|
|
2020-11-16 17:48:42 +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
|
|
|
)
|
|
|
|
|