update: Rebased profile-feature

This commit is contained in:
Jure Ursic 2020-05-12 16:51:05 +02:00
parent 607de5dc13
commit 401df1a903
5 changed files with 11 additions and 2 deletions

View File

@ -22,7 +22,7 @@ if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers)
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.3" defer)
//- script(type="module" src="/lib/sib-directory/sib-directory.js" defer)
//- script(type="module" src="/lib/sib-directory/index.js" defer)
if endpoints.dashboards || (endpoints.get && endpoints.get.dashboards)
script(type="module" src="https://unpkg.com/@startinblox/component-dashboard@0.1" defer)

View File

@ -26,7 +26,7 @@ details#user-controls.notLoggedIn
ul
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
li
sib-link(next='my-profile') Mon profil
sib-link(next='profile') Mon profil
//-li
sib-link(next='user-settings') Settings
li

View File

@ -52,6 +52,9 @@ html(lang="en")
#admin(hidden).with-sidebar
include page-admin.pug
#profile(hidden).no-sidebar
include page-profile.pug
if analytics
each provider in analytics
if provider.type && provider.url && provider.url

View File

@ -125,6 +125,7 @@ nav#main__menu.jsLeftMenu
div.divider
sib-route(name='admin', hidden)
sib-route.menu(name='profile', hidden)
//- div.divider
//- sib-route.menu(hidden, name='my-profile', rdf-type='foaf:user', use-id='')

5
src/page-profile.pug Normal file
View File

@ -0,0 +1,5 @@
sib-profile(
bind-user
upload-src=`${endpoints.upload || endpoints.post.upload}`
range-skills=`${endpoints.skills || endpoints.get.skills}`
)