update: Adding proper conditions
This commit is contained in:
parent
523fba94be
commit
af86fe9dbc
@ -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="/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)
|
||||
script(type="module" src="https://unpkg.com/@startinblox/component-job-board@0.5" 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user