hubl/src/menu-left.pug

122 lines
4.0 KiB
Plaintext
Raw Normal View History

2019-06-05 08:50:33 +00:00
sib-widget(name='hd-counter')
template
2020-03-12 07:53:39 +00:00
sib-fix-badge(data-src="${value == 'badge' ? src : value}")
sib-widget(name='hd-create')
template
2020-04-21 08:20:06 +00:00
p.create Tu ne fais partie d'aucun ${value}.
br
| Pour en créer un nouveau, tu peux te rendre dans le
sib-link(next='admin') panneau d'administration
sib-widget(name='menu-fix-url-circle')
template
sib-display(
data-src='${value}'
fields='name, badge'
value-badge='${value}'
widget-badge='hd-counter'
widget-name='sib-display-div'
)
sib-widget(name='menu-fix-url-project')
template
sib-display(
data-src='${value}'
fields='project(customer.name, name), badge'
class-name='project-name'
class-customer.name='project-customer'
value-badge='${value}'
widget-badge='hd-counter'
widget-name='sib-display-div'
)
nav#main__menu.jsLeftMenu
sib-router#navbar-router(default-route='dashboard')
2020-04-15 13:21:02 +00:00
if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards)
sib-route.menu(name='dashboard')
2020-04-21 08:20:06 +00:00
div.menu-label Tableau de bord
2020-04-17 14:23:53 +00:00
div.menu-icon.icon-home
div.divider
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
sib-route.menu(name='members')
2020-04-21 08:20:06 +00:00
div.menu-label Annuaire des membres
div.menu-icon.icon-people
div.divider
if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers)
sib-route.menu(name='job-offers', rdf-type='hd:joboffer')
2020-04-21 08:20:06 +00:00
div.menu-label Offres de mission
div.menu-icon.icon-briefcase
div.divider
2020-02-03 14:43:16 +00:00
if endpoints.events || (endpoints.get && endpoints.get.events)
sib-route.menu(name='events')
2020-04-21 08:20:06 +00:00
div.menu-label Evènements
2020-02-03 14:43:16 +00:00
div.menu-icon.icon-calendar
div.divider
if endpoints.projects || (endpoints.get && endpoints.get.projects)
div
div.menu
div.menu-chevron
sib-link(next='admin-project-list')
div.menu-icon.icon-arrow-right
2020-04-21 08:20:06 +00:00
div.menu-label Projets
div.menu-icon.icon-folder-alt
sib-route(name='project', rdf-type='hd:project', use-id='', hidden)
div.sub-menu.menu-notification
sib-display.project-tab(
bind-user
nested-field='projects'
fields='project'
empty-widget='hd-create'
empty-value='project'
widget-project='menu-fix-url-project'
order-by='project.customer.name'
next='project'
)
div.divider
if endpoints.circles || (endpoints.get && endpoints.get.circles)
div
div.menu
div.menu-chevron
sib-link(next='admin-circle-list')
div.menu-icon.icon-arrow-right
2020-04-21 08:20:06 +00:00
div.menu-label Canaux
div.menu-icon.icon-folder-alt
sib-route(name='circle', rdf-type='hd:circle', use-id='', hidden)
div.sub-menu.menu-notification
sib-display(
bind-user
nested-field='circles'
fields='circle'
empty-widget='hd-create'
empty-value='circle'
widget-circle='menu-fix-url-circle'
order-by='circle.name'
next='circle'
)
div.divider
if endpoints.users || (endpoints.get && endpoints.get.users)
div.menu-wrapper
div.menu
div.menu-chevron
div.menu-icon.icon-arrow-up
2020-04-21 08:20:06 +00:00
div.menu-label Messages
div.menu-icon.icon-envelope-letter
sib-route(name='messages', rdf-type='foaf:user', use-id='', hidden)
div.sub-menu.menu-notification
sib-display.nosub(
data-src=`${endpoints.users || (endpoints.get && endpoints.get.users)}`
fields='username, badge'
widget-username='sib-display-div'
widget-badge='hd-counter'
action-badge='badge'
order-by='username'
next='messages'
)
div.divider
2019-06-05 08:50:33 +00:00
2019-11-14 12:27:04 +00:00
sib-route(name='admin', hidden)
//- div.divider
//- sib-route.menu(hidden, name='my-profile', rdf-type='foaf:user', use-id='')