fix: sib-profile
This commit is contained in:
parent
28fd228d29
commit
b8d7badae4
@ -78,7 +78,9 @@ On `config.json`:
|
|||||||
"xmpp": "https://jabber.happy-dev.fr/http-bind/",
|
"xmpp": "https://jabber.happy-dev.fr/http-bind/",
|
||||||
"authority": "http://localhost:8000/",
|
"authority": "http://localhost:8000/",
|
||||||
"endpoints": {
|
"endpoints": {
|
||||||
"users": "http://server.url/users/"
|
"skills": "http://server.url/skills/",
|
||||||
|
"users": "http://server.url/users/",
|
||||||
|
"uploads": "http://server.url/upload/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -155,6 +157,8 @@ On `config.json`:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
A [sample fixture](https://git.startinblox.com/djangoldp-packages/djangoldp-dashboard/blob/master/djangoldp_dashboard/fixtures/sample.json) can be loaded with `./manage.py loaddata path/to/djangoldp_dashboard/fixtures/sample.json`.
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
|
||||||
Events allow to create and manage instance-level evenement. To activate them, you need:
|
Events allow to create and manage instance-level evenement. To activate them, you need:
|
||||||
|
@ -23,9 +23,9 @@ if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers)
|
|||||||
//- script(type="module" src="/lib/sib-job-board/sib-job-board.js" defer)
|
//- script(type="module" src="/lib/sib-job-board/sib-job-board.js" defer)
|
||||||
//- script(type="module" src="/lib/sib-conversation/sib-conversation.js" defer)
|
//- script(type="module" src="/lib/sib-conversation/sib-conversation.js" defer)
|
||||||
|
|
||||||
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
|
if (endpoints.uploads || (endpoints.get && endpoints.get.uploads)) && (endpoints.skills || (endpoints.get && endpoints.get.skills)) && (endpoints.users || (endpoints.get && endpoints.get.users))
|
||||||
script(type="module" src="/lib/sib-directory/index.js" defer)
|
script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.3" defer)
|
||||||
//- script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.3" defer)
|
//- script(type="module" src="/lib/sib-directory/index.js" defer)
|
||||||
|
|
||||||
if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards)
|
if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards)
|
||||||
script(type="module" src="https://unpkg.com/@startinblox/component-dashboard@0.1" defer)
|
script(type="module" src="https://unpkg.com/@startinblox/component-dashboard@0.1" defer)
|
||||||
|
@ -24,11 +24,9 @@ details#user-controls.notLoggedIn
|
|||||||
#user-controls__panel
|
#user-controls__panel
|
||||||
nav(role="user's functionalities menu")
|
nav(role="user's functionalities menu")
|
||||||
ul
|
ul
|
||||||
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
|
if (endpoints.uploads || (endpoints.get && endpoints.get.uploads)) && (endpoints.skills || (endpoints.get && endpoints.get.skills)) && (endpoints.users || (endpoints.get && endpoints.get.users))
|
||||||
li
|
li
|
||||||
sib-link(next='profile') Mon profil
|
sib-link(next='profile') Mon profil
|
||||||
//-li
|
|
||||||
sib-link(next='user-settings') Settings
|
|
||||||
li
|
li
|
||||||
sib-link(next='admin') Administration
|
sib-link(next='admin') Administration
|
||||||
button(role='log out' onclick="document.querySelector('sib-auth').logout();") Se déconnecter
|
button(role='log out' onclick="document.querySelector('sib-auth').logout();") Se déconnecter
|
||||||
|
@ -52,7 +52,7 @@ html(lang="en")
|
|||||||
#admin(hidden).with-sidebar
|
#admin(hidden).with-sidebar
|
||||||
include page-admin.pug
|
include page-admin.pug
|
||||||
|
|
||||||
if (endpoints.skills || (endpoints.get && endpoints.get.skills)) && (endpoints.uploads || (endpoints.post && endpoints.post.uploads))
|
if (endpoints.skills || (endpoints.get && endpoints.get.skills)) && (endpoints.uploads || (endpoints.post && endpoints.post.uploads)) && (endpoints.users || (endpoints.post && endpoints.post.users))
|
||||||
#profile(hidden).no-sidebar
|
#profile(hidden).no-sidebar
|
||||||
include page-profile.pug
|
include page-profile.pug
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ nav#main__menu.jsLeftMenu
|
|||||||
nested-field='projects'
|
nested-field='projects'
|
||||||
fields='project'
|
fields='project'
|
||||||
empty-widget='hubl-create'
|
empty-widget='hubl-create'
|
||||||
empty-value='project'
|
empty-value='projet'
|
||||||
widget-project='hubl-menu-fix-url-project'
|
widget-project='hubl-menu-fix-url-project'
|
||||||
order-by='project.customer.name'
|
order-by='project.customer.name'
|
||||||
next='project'
|
next='project'
|
||||||
@ -105,7 +105,7 @@ nav#main__menu.jsLeftMenu
|
|||||||
nested-field='circles'
|
nested-field='circles'
|
||||||
fields='circle'
|
fields='circle'
|
||||||
empty-widget='hubl-create'
|
empty-widget='hubl-create'
|
||||||
empty-value='circle'
|
empty-value='cercle'
|
||||||
widget-circle='hubl-menu-fix-url-circle'
|
widget-circle='hubl-menu-fix-url-circle'
|
||||||
order-by='circle.name'
|
order-by='circle.name'
|
||||||
next='circle'
|
next='circle'
|
||||||
@ -138,6 +138,3 @@ nav#main__menu.jsLeftMenu
|
|||||||
|
|
||||||
sib-route(name='admin', hidden)
|
sib-route(name='admin', hidden)
|
||||||
sib-route.menu(name='profile', hidden)
|
sib-route.menu(name='profile', hidden)
|
||||||
//- div.divider
|
|
||||||
//- sib-route.menu(hidden, name='my-profile', rdf-type='foaf:user', use-id='')
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user