update: Adding proper conditions

This commit is contained in:
Benoit Alessandroni 2020-08-31 22:55:23 +02:00
parent 523fba94be
commit af86fe9dbc
2 changed files with 19 additions and 16 deletions

View File

@ -14,13 +14,13 @@ 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="https://unpkg.com/@startinblox/component-notifications@0.6.2" defer)
//- script(type="module" src="/lib/sib-notifications/index.js" defer) //- script(type="module" src="/lib/sib-notifications/index.js" defer)
if endpoints.events || (endpoints.get && endpoints.get.events) 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="https://unpkg.com/@startinblox/component-event@1.1" defer)
//- script(type="module" src="/lib/sib-event-component/sib-event.js" defer) script(type="module" src="/lib/sib-event-component/sib-event.js" defer)
if endpoints.resources || (endpoints.get && endpoints.get.resources) 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="https://unpkg.com/@startinblox/component-resource@1.0" defer)
//-script(type="module" src="/lib/sib-resource/sib-resource.js" 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="https://unpkg.com/@startinblox/component-job-board@0.5" defer)

View File

@ -34,13 +34,16 @@ nav.jsRightMenu(role='navigation')
solid-route(name='circle-information') solid-route(name='circle-information')
li li
a Information a Information
solid-route(name='circle-resources' use-id) if (endpoints.resources || (endpoints.get && endpoints.get.resources)) && (endpoints.resourceskeywords || (endpoints.get && endpoints.get.resourceskeywords)) && (endpoints.resourcestypes || (endpoints.get && endpoints.get.resourcestypes))
li solid-route(name='circle-resources' use-id)
a Resources li
solid-route(name='circle-events' use-id) a Resources
li if (endpoints.events || (endpoints.get && endpoints.get.events)) && (endpoints.typeevents || (endpoints.get && endpoints.get.typeevents))
a Events solid-route(name='circle-events' use-id)
solid-route(name='circle-polls' use-id) li
li a Events
a Polls if endpoints.polls || (endpoints.get && endpoints.get.polls)
solid-route(name='circle-polls' use-id)
li
a Polls