Skip to content
Snippets Groups Projects
Commit af86fe9d authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

update: Adding proper conditions

parent 523fba94
No related branches found
No related tags found
1 merge request!172First integration to Hubl of the resource component
Pipeline #7122 passed
......@@ -14,15 +14,15 @@ script(type="module" src="https://unpkg.com/@startinblox/router@0.8" defer)
script(type="module" src="https://unpkg.com/@startinblox/component-notifications@0.6.2" defer)
//- script(type="module" src="/lib/sib-notifications/index.js" defer)
if endpoints.events || (endpoints.get && endpoints.get.events)
script(type="module" src="https://unpkg.com/@startinblox/component-event@1.1" defer)
//- script(type="module" src="/lib/sib-event-component/sib-event.js" defer)
if (endpoints.events || (endpoints.get && endpoints.get.events)) && (endpoints.typeevents || (endpoints.get && endpoints.get.typeevents))
//- script(type="module" src="https://unpkg.com/@startinblox/component-event@1.1" defer)
script(type="module" src="/lib/sib-event-component/sib-event.js" defer)
if endpoints.resources || (endpoints.get && endpoints.get.resources)
script(type="module" src="https://unpkg.com/@startinblox/component-resource@1.0" defer)
//-script(type="module" src="/lib/sib-resource/sib-resource.js" defer)
if (endpoints.resources || (endpoints.get && endpoints.get.resources)) && (endpoints.resourceskeywords || (endpoints.get && endpoints.get.resourceskeywords)) && (endpoints.resourcestypes || (endpoints.get && endpoints.get.resourcestypes))
//- script(type="module" src="https://unpkg.com/@startinblox/component-resource@1.0" defer)
script(type="module" src="/lib/sib-resource/sib-resource.js" defer)
if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers)
if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers)
script(type="module" src="https://unpkg.com/@startinblox/component-job-board@0.5" defer)
//- script(type="module" src="/lib/solid-job-board/dist/index.js" defer)
......
......@@ -34,13 +34,16 @@ nav.jsRightMenu(role='navigation')
solid-route(name='circle-information')
li
a Information
solid-route(name='circle-resources' use-id)
li
a Resources
solid-route(name='circle-events' use-id)
li
a Events
solid-route(name='circle-polls' use-id)
li
a Polls
if (endpoints.resources || (endpoints.get && endpoints.get.resources)) && (endpoints.resourceskeywords || (endpoints.get && endpoints.get.resourceskeywords)) && (endpoints.resourcestypes || (endpoints.get && endpoints.get.resourcestypes))
solid-route(name='circle-resources' use-id)
li
a Resources
if (endpoints.events || (endpoints.get && endpoints.get.events)) && (endpoints.typeevents || (endpoints.get && endpoints.get.typeevents))
solid-route(name='circle-events' use-id)
li
a Events
if endpoints.polls || (endpoints.get && endpoints.get.polls)
solid-route(name='circle-polls' use-id)
li
a Polls
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment