Skip to content
Snippets Groups Projects
menu-left.pug 2.74 KiB
sib-widget(name='hd-counter')
  template
    sib-badge(data-src="${value['@id']}")

sib-widget(name='hd-create')
  template
    p.create You are not part of any ${value} yet. To create a new one, you can go to the 
      sib-link(next='admin') administration panel

nav#main__menu
  sib-router#navbar-router(default-route='members')
    //- sib-route.menu(name='members')
    //-   div.menu-label Members
    //-   div.menu-icon.icon-people
    //- div.divider
    //- sib-route.menu(name='job-offers', rdf-type='hd:joboffer')
    //-   div.menu-label Job offers
    //-   div.menu-icon.icon-briefcase
    //- sib-route(name='job-offer-create', hidden)
    //- sib-route(name='job-offer-edit', use-id, hidden)
    //- div.divider
    div.menu-wrapper
      div.menu
        div.menu-chevron
          sib-link(next='admin-project-list')
            div.menu-icon.icon-arrow-right
        div.menu-label Projects
        div.menu-icon.icon-folder-alt
      sib-route(name='project', rdf-type='hd:project', use-id='', hidden)
      div.sub-menu.menu-notification
        sib-display(
          bind-user
          nested-field='projects'
          fields='line(project.customer.name, dash, project.name), project'
          empty-widget='hd-create'
          empty-value='project'
          value-dash=' - '
          widget-project='hd-counter'
          order-by='project.customer.name'
          next='project'
        )
    div.divider
    div.menu-wrapper
      div.menu
        div.menu-chevron
          sib-link(next='admin-circle-list')
            div.menu-icon.icon-arrow-right
        div.menu-label Circles
        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.name, circle'
          empty-widget='hd-create'
          empty-value='circle'
          widget-circle.name='sib-display-div',
          widget-circle='hd-counter'
          order-by='circle.name'
          next='circle'
        )
    div.divider
    div.menu-wrapper
      div.menu
        div.menu-chevron
          div.menu-icon.icon-arrow-up
        div.menu-label Chat
        div.menu-icon.icon-envelope-letter
      sib-route(name='messages', rdf-type='foaf:user', use-id='', hidden)
      div.sub-menu.menu-notification
        sib-display(
          data-src=`${endpoints.users}`
          fields='username, badge'
          widget-username='sib-display-div'
          widget-badge='hd-counter'
          action-badge='badge'
          order-by='username'
          next='messages'
        )

    sib-route(name='admin', hidden)
    //- div.divider
    //- sib-route.menu(hidden, name='my-profile', rdf-type='foaf:user', use-id='')