2020-12-16 14:01:05 +00:00
|
|
|
div
|
|
|
|
|
2021-02-22 20:27:58 +00:00
|
|
|
solid-link.segment.sm-hidden(next=getRoute('dashboard', true))
|
2021-04-01 05:10:59 +00:00
|
|
|
h1.text-color-heading.text-medium.text-semibold.text-letter-spacing-large=client.name || 'Hubl'
|
2021-01-22 13:21:25 +00:00
|
|
|
button.segment.lg-hidden.icon-menu#toggleMainMenu
|
2020-12-14 15:21:02 +00:00
|
|
|
|
2021-04-01 05:10:59 +00:00
|
|
|
span.tag.reversed.text-bold.margin-left-xsmall(data-trans='header.beta')
|
2020-12-16 14:01:05 +00:00
|
|
|
|
2020-12-16 18:39:19 +00:00
|
|
|
div
|
2021-02-22 20:27:58 +00:00
|
|
|
if componentSet.has("themeChecker")
|
2021-01-25 13:52:34 +00:00
|
|
|
div.selector.text-center
|
|
|
|
each val, index in ['primary', 'secondary', 'third', 'heading']
|
|
|
|
label.segment.margin-right-medium.margin-top-xsmall= 'Couleur ' + (index+1)
|
2021-01-12 08:50:48 +00:00
|
|
|
input.input-color(
|
|
|
|
id='color-'+val
|
|
|
|
type="text"
|
|
|
|
)
|
|
|
|
|
2021-02-22 20:27:58 +00:00
|
|
|
if componentSet.has("notification")
|
2021-04-02 14:02:25 +00:00
|
|
|
solid-notifications.segment.margin-right-large(
|
2021-02-22 20:27:58 +00:00
|
|
|
nested-field="inbox"
|
|
|
|
bind-user
|
|
|
|
)
|
2021-01-25 13:52:34 +00:00
|
|
|
|
2021-02-22 20:27:58 +00:00
|
|
|
if componentSet.has("autoLogin") || componentSet.has("registering")
|
|
|
|
//- User menu visible on large screens
|
|
|
|
details.segment.sm-hidden.user-controls
|
2021-04-01 05:10:59 +00:00
|
|
|
summary.text-right.padding-right-xsmall.padding-left-xsmall
|
|
|
|
solid-display.labelled-avatar(
|
|
|
|
fields='segment1(account.picture), segment2(button)'
|
2021-02-22 20:27:58 +00:00
|
|
|
class-segment1='segment'
|
2021-04-01 05:10:59 +00:00
|
|
|
class-segment2='segment margin-left-xxsmall'
|
|
|
|
class-account.picture="avatar xxsmall"
|
|
|
|
class-button='icon icon-small icon-arrow-down'
|
2021-02-22 20:27:58 +00:00
|
|
|
widget-account.picture='hubl-user-avatar'
|
|
|
|
bind-user
|
|
|
|
)
|
|
|
|
div.panel
|
|
|
|
nav.bg-color-white.text-semibold.text-color-heading
|
|
|
|
ul
|
|
|
|
if componentSet.has("profileDirectory")
|
|
|
|
li.border-bottom.border-color-grey
|
|
|
|
solid-link.segment.padding-small.text-hover(next=`${getRoute("profileDirectory", true)}-profile` data-trans='header.myProfile')
|
|
|
|
if componentSet.has("admin")
|
|
|
|
li.segment.padding-small.border-bottom.border-color-grey
|
|
|
|
div(data-trans='header.admin')
|
|
|
|
ul.text-normal
|
|
|
|
if componentSet.has("communities")
|
|
|
|
solid-link.text-hover(next=`admin-${getRoute("chat", true)}`)
|
|
|
|
li.segment.padding-top-small
|
|
|
|
a.icon.icon-people.icon-third.icon-small.icon-margin-right-xsmall(data-trans='admin.menuRight.community')
|
|
|
|
if componentSet.has("circles")
|
|
|
|
solid-link.text-hover(next=`admin-${getRoute("circles", true)}`)
|
|
|
|
li.segment.padding-top-small
|
|
|
|
a.icon.icon-globe.icon-third.icon-small.icon-margin-right-xsmall(data-trans='admin.menuRight.circles')
|
|
|
|
if componentSet.has("projects")
|
|
|
|
solid-link.text-hover(next=`admin-${getRoute("projects", true)}`)
|
|
|
|
li.segment.padding-top-small
|
|
|
|
a.icon.icon-folder-alt.icon-third.icon-small.icon-margin-right-xsmall(data-trans='admin.menuRight.projects')
|
|
|
|
if componentSet.has("about")
|
|
|
|
li.border-bottom.border-color-grey
|
|
|
|
solid-link.segment.padding-small.text-hover(next=getRoute('about', true) data-trans='header.about')
|
|
|
|
li
|
|
|
|
button.segment.padding-small.text-hover.text-semibold.text-color-heading(role='log out' onclick="document.querySelector('sib-auth').logout();" data-trans='header.logOut')
|
2020-12-16 14:01:05 +00:00
|
|
|
|
2021-02-22 20:27:58 +00:00
|
|
|
//- User menu visible on small screens
|
|
|
|
details.user-menu.segment.lg-hidden.user-controls
|
|
|
|
summary
|
|
|
|
solid-display.labelled-avatar(
|
|
|
|
fields='segment1(account.picture), segment3(button)'
|
|
|
|
class-segment1='segment'
|
|
|
|
class-segment3='segment sm-arrow-down'
|
|
|
|
class-account.picture="avatar"
|
|
|
|
class-button='icon icon-arrow-down'
|
|
|
|
widget-account.picture='hubl-user-avatar'
|
|
|
|
bind-user
|
|
|
|
)
|
|
|
|
solid-display.user-firstname(
|
|
|
|
fields='segment1(account.picture), segment2(first_name), segment3(button)'
|
|
|
|
class-segment1='segment'
|
|
|
|
class-segment2='segment margin-left-small'
|
|
|
|
class-segment3='segment'
|
|
|
|
class-account.picture="avatar"
|
|
|
|
class-first_name="text-semibold text-color-heading"
|
|
|
|
class-button='icon icon-arrow-down'
|
|
|
|
widget-account.picture='hubl-user-avatar'
|
|
|
|
bind-user
|
|
|
|
)
|
|
|
|
div.panel
|
|
|
|
nav.bg-color-white.text-semibold.text-color-heading
|
|
|
|
ul
|
|
|
|
if componentSet.has("profileDirectory")
|
|
|
|
li.border-bottom.border-color-grey
|
|
|
|
solid-link.segment.padding-small.sm-padding-medium.sm-padding-left-xlarge.text-hover(next=`${getRoute("profileDirectory", true)}-profile` data-trans='header.myProfile')
|
|
|
|
if componentSet.has("admin")
|
|
|
|
li.segment.padding-small.sm-padding-medium.sm-padding-left-xlarge.border-bottom.border-color-grey
|
|
|
|
div(data-trans='header.admin')
|
|
|
|
ul.text-normal
|
|
|
|
if componentSet.has("communities")
|
|
|
|
solid-link.text-hover(next=`admin-${getRoute("chat", true)}`)
|
|
|
|
li.segment.padding-top-small.sm-padding-top-medium
|
2021-04-07 21:21:50 +00:00
|
|
|
a.icon.icon-grid.icon-third.icon-small.icon-margin-right-xsmall(data-trans='admin.menuRight.community')
|
2021-02-22 20:27:58 +00:00
|
|
|
if componentSet.has("circles")
|
|
|
|
solid-link.text-hover(next=`admin-${getRoute("circles", true)}`)
|
|
|
|
li.segment.padding-top-small.sm-padding-top-medium
|
|
|
|
a.icon.icon-globe.icon-third.icon-small.icon-margin-right-xsmall(data-trans='admin.menuRight.circles')
|
|
|
|
if componentSet.has("projects")
|
|
|
|
solid-link.text-hover(next=`admin-${getRoute("projects", true)}`)
|
|
|
|
li.segment.padding-top-small.sm-padding-top-medium
|
|
|
|
a.icon.icon-folder-alt.icon-third.icon-small.icon-margin-right-xsmall(data-trans='admin.menuRight.projects')
|
|
|
|
if componentSet.has("about")
|
|
|
|
li.border-bottom.border-color-grey
|
|
|
|
solid-link.segment.padding-small.sm-padding-medium.sm-padding-left-xlarge.text-hover(next=getRoute('about', true) data-trans='header.about')
|
|
|
|
li
|
|
|
|
button.segment.padding-small.sm-padding-medium.sm-padding-left-xlarge.text-hover.text-bold.text-color-heading(role='log out' onclick="document.querySelector('sib-auth').logout();" data-trans='header.logOut')
|
2021-01-15 13:00:06 +00:00
|
|
|
|
|
|
|
|