hubl/src/views/partials/menu-left.pug

231 lines
9.5 KiB
Plaintext
Raw Normal View History

2020-06-18 18:02:54 +00:00
solid-widget(name='hubl-counter')
2019-06-05 08:50:33 +00:00
template
solid-badge(data-src="${value == 'badge' ? src : value}")
2020-06-18 18:02:54 +00:00
solid-widget(name='hubl-menu-jabberid')
2020-05-08 13:27:44 +00:00
template
div.hidden(
data-jabberID="${value}"
)
2020-06-18 18:02:54 +00:00
solid-widget(name='hubl-menu-publicprivate')
2020-05-19 17:42:32 +00:00
template
2021-01-26 17:46:26 +00:00
div(
class="${value == 'Public' ? 'text-simple-line-icons text-large': 'text-simple-line-icons text-xsmall'}"
) ${value == 'Public' ? '#' : ''}
2020-05-19 17:42:32 +00:00
2020-12-09 11:20:35 +00:00
solid-widget(name='hubl-create-contact')
template
2021-01-27 13:36:21 +00:00
p.segment.full.create.text-color-white.whitespace-normal(style='display:block!important')
2020-12-09 11:20:35 +00:00
span(data-trans="menuLeft.contact.create")
span  
solid-link(next="members" data-trans="menuLeft.contact.profileDir")
span  
span(data-trans="menuLeft.contact.create2")
2020-06-18 18:02:54 +00:00
solid-widget(name='hubl-create')
template
2021-01-27 13:36:21 +00:00
p.segment.full.create.text-color-white.whitespace-normal(style='display:block!important')
2020-10-20 14:31:30 +00:00
span(data-trans="menuLeft.emptyCircleProject.notPartOf")
span  ${value}.
span(data-trans="menuLeft.emptyCircleProject.createNew")
span  
2021-01-27 13:36:21 +00:00
solid-link(next="${value == 'projet' ? 'admin-projects' : 'admin-circles'}", data-trans="menuLeft.emptyCircleProject.adminPanel")
2020-12-09 11:20:35 +00:00
solid-widget(name='hubl-menu-fix-url-contact')
template
solid-link.segment.full(data-src="${value}" next="messages")
solid-display.segment.full.text-color-white.heading-active.bg-color-heading.hover.active(
2020-12-09 11:20:35 +00:00
data-src='${value}'
fields='segment(message(name, chatProfile.jabberID), badge)'
class-segment="segment full padding-top-xxsmall padding-bottom-xxsmall padding-right-small padding-left-medium"
class-message='segment three-quarter sub-menu-name'
class-badge='segment badge'
2020-12-09 11:20:35 +00:00
value-badge='${value}'
widget-badge='hubl-counter'
widget-chatProfile.jabberID='hubl-menu-jabberid'
widget-name='solid-display-div'
order-asc='username'
)
2020-06-18 18:02:54 +00:00
solid-widget(name='hubl-menu-fix-url-circle')
template
solid-link.segment.full(data-src="${value}" next="circle")
solid-display.segment.full.text-color-white.heading-active.bg-color-heading.hover.active(
2020-10-19 08:40:59 +00:00
data-src='${value}'
2020-12-18 17:29:54 +00:00
fields='segment(status, circle(name, jabberID), badge)'
class-segment="segment full padding-top-xxsmall padding-bottom-xxsmall padding-right-small padding-left-medium"
2020-12-18 17:29:54 +00:00
2020-12-18 17:39:45 +00:00
class-status='segment text-top sub-menu-icon'
2020-12-18 17:29:54 +00:00
class-circle='segment three-quarter sub-menu-name'
2020-12-18 17:29:54 +00:00
class-name='ellipsis-content'
2020-12-18 17:29:54 +00:00
class-badge='segment badge'
2020-10-19 08:40:59 +00:00
value-badge='${value}'
widget-status='hubl-menu-publicprivate'
widget-badge='hubl-counter'
widget-jabberID='hubl-menu-jabberid'
widget-name='solid-display-div'
2020-12-09 11:20:35 +00:00
order-asc="name"
2020-10-19 08:40:59 +00:00
)
2020-06-18 18:02:54 +00:00
solid-widget(name='hubl-menu-fix-url-project')
template
solid-link.segment.full(data-src="${value}" next="project")
solid-display.segment.full.text-color-white.heading-active.bg-color-heading.hover.active(
2020-10-19 08:40:59 +00:00
data-src='${value}'
fields='segment(status, project(customer.name, name, jabberID), badge)'
class-segment="segment full padding-top-xxsmall padding-bottom-xxsmall padding-right-small padding-left-medium"
2020-12-18 17:39:45 +00:00
class-status='segment text-top sub-menu-icon'
class-project='segment three-quarter sub-menu-name'
class-customer.name='ellipsis-content'
class-name='ellipsis-content'
class-badge='segment badge text-top'
2020-10-19 08:40:59 +00:00
value-badge='${value}'
widget-status='hubl-menu-publicprivate'
widget-jabberID='hubl-menu-jabberid'
widget-badge='hubl-counter'
widget-name='solid-display-div'
2020-12-09 11:20:35 +00:00
order-asc="customer.name"
2020-10-19 08:40:59 +00:00
)
2020-06-18 18:02:54 +00:00
solid-router#navbar-router(default-route='dashboard')
if endpoints.get.dashboards
solid-route.menu.segment.full.padding-small.text-semibold.text-color-white.heading-active.bg-color-heading.hover.active(name='dashboard')
2021-01-11 17:45:43 +00:00
div.segment.margin-right-xxsmall
div.icon.icon-small.icon-home
div.segment.text-uppercase.text-letter-spacing-large(data-trans="menuLeft.dashboard")
div.divider
if publicDirectory && endpoints.get.users
solid-route.menu.segment.full.padding-small.text-semibold.text-color-white.heading-active.bg-color-heading.hover.active(name='members')
2021-01-11 19:14:20 +00:00
div.segment.margin-right-xxsmall
div.icon.icon-small.icon-people
div.segment.text-uppercase.text-letter-spacing-large(data-trans="menuLeft.profileDirectory")
div.divider
if endpoints.get.joboffers
solid-route.menu.segment.full.padding-small.text-semibold.text-color-white.heading-active.bg-color-heading.hover.active(name='job-offers', rdf-type='hd:joboffer')
2021-01-18 10:51:33 +00:00
div.segment.margin-right-xxsmall
div.segment.icon.icon-small.icon-briefcase
div.segment.text-uppercase.text-letter-spacing-large(data-trans="menuLeft.jobBoard")
div.divider
if endpoints.get.resources
solid-route.menu.segment.full.padding-small.text-semibold.text-color-white.heading-active.bg-color-heading.hover.active(name='resources')
2021-01-11 19:14:20 +00:00
div.segment.margin-right-xxsmall
div.segment.icon.icon-small.icon-docs
div.segment.text-uppercase.text-letter-spacing-large(data-trans="menuLeft.resources")
div.divider
if endpoints.get.polls
solid-route.menu.segment.full.padding-small.text-semibold.text-color-white.heading-active.bg-color-heading.hover.active(name='polls')
2021-01-11 19:14:20 +00:00
div.segment.margin-right-xxsmall
div.segment.icon.icon-small.icon-bubbles
div.segment.text-uppercase.text-letter-spacing-large(data-trans="menuLeft.gov")
div.divider
if endpoints.get.events
solid-route.menu.segment.full.padding-small.text-semibold.text-color-white.heading-active.bg-color-heading.hover.active(name='events')
2021-01-11 19:14:20 +00:00
div.segment.margin-right-xxsmall
div.segment.icon.icon-small.icon-calendar
div.segment.text-uppercase.text-letter-spacing-large(data-trans="menuLeft.events")
div.divider
if endpoints.get.projects
2021-01-10 16:53:56 +00:00
div.menu-wrapper
2021-01-22 15:26:19 +00:00
solid-route.menu.segment.full.padding-small.text-semibold.text-color-white.heading-active.bg-color-heading.hover.active(name='admin-projects')
2021-01-10 16:53:56 +00:00
div.segment.margin-right-xxsmall
div.segment.icon.icon-small.icon-folder-alt
div.segment.three-quarter.text-uppercase.text-letter-spacing-large(data-trans="menuLeft.projects")
2021-01-10 16:53:56 +00:00
div.menu-chevron.segment
div.icon-arrow-right-circle
2021-01-10 16:53:56 +00:00
solid-route(name='project', rdf-type='hd:project', use-id='', hidden)
solid-route(name='admin-projects-create', hidden)
solid-route(name='project-left', hidden)
2021-01-10 16:53:56 +00:00
div.sub-menu.menu-notification
div#loader-projects.loader.loader-menu
div
div
div
div
solid-display.ellipsis(
bind-user
nested-field='projects'
fields='project'
loader-id='loader-projects'
empty-widget='hubl-create'
empty-value=''
data-trans="empty-value=menuLeft.emptyCircleProject.project"
widget-project='hubl-menu-fix-url-project'
order-asc="project.customer.name"
)
div.divider
if endpoints.get.circles
div.menu-wrapper
2021-01-22 15:26:19 +00:00
solid-route.menu.segment.full.padding-small.text-semibold.text-color-white.heading-active.bg-color-heading.hover.active(name='admin-circles')
div.segment.margin-right-xxsmall
div.segment.icon.icon-small.icon-folder-alt
div.segment.three-quarter.text-uppercase.text-letter-spacing-large(data-trans="menuLeft.circles")
div.menu-chevron.segment
div.menu-icon.icon-arrow-right-circle
2021-01-08 14:39:37 +00:00
solid-route(name='circle', rdf-type='hd:circle', use-id='', hidden)
solid-route(name='admin-circles-create')
solid-route(name='circle-left')
div.sub-menu.menu-notification
2021-01-08 14:39:37 +00:00
div#loader-circles.loader.loader-menu
div
div
div
div
solid-display.ellipsis(
bind-user
2021-01-08 14:39:37 +00:00
nested-field='circles'
fields='circle'
loader-id='loader-circles'
empty-widget='hubl-create'
empty-value=''
2021-01-08 14:39:37 +00:00
data-trans="empty-value=menuLeft.emptyCircleProject.circle"
widget-circle='hubl-menu-fix-url-circle'
order-asc="circle.name"
)
div.divider
2021-01-11 19:14:20 +00:00
div.menu-wrapper
2021-01-22 15:26:19 +00:00
solid-route.menu.segment.full.padding-small.text-semibold.text-color-white.heading-active.bg-color-heading.hover.active(name='admin-communities')
2021-01-11 19:14:20 +00:00
div.segment.margin-right-xxsmall
div.segment.icon.icon-small.icon-folder-alt
div.segment.three-quarter.text-uppercase.text-letter-spacing-large(data-trans="menuLeft.messages")
2021-01-11 19:14:20 +00:00
div.menu-chevron.segment
div.menu-icon.icon-arrow-right-circle
solid-route(name='admin-users-create', use-id='', hidden)
2021-01-11 19:14:20 +00:00
solid-route(name='messages', rdf-type='foaf:user', use-id='', hidden)
div.sub-menu.menu-notification
div#loader-messages.loader.loader-menu
div
div
div
div
//- search-fields="contact.name"
//- search-label-contact.name=""
//- data-trans="search-label-contact.name=menuLeft.search"
//- search-widget-contact.name="hubl-search-users"
solid-display.segment.full.whitespace-normal(
2021-01-11 19:14:20 +00:00
bind-user
nested-field='contacts'
fields='contact'
loader-id='loader-messages'
empty-widget='hubl-create-contact'
empty-value=''
widget-contact='hubl-menu-fix-url-contact'
order-asc="contact.username"
)
div.divider
solid-route.menu(name='profile', hidden)
2021-01-10 16:53:56 +00:00
solid-route(name='about', hidden)