2022-03-15 12:58:14 +00:00
|
|
|
<Route
|
|
|
|
@name={{routeName}}
|
|
|
|
as |route|>
|
|
|
|
<AppView>
|
|
|
|
<BlockSlot @name="header">
|
|
|
|
<h1>
|
|
|
|
<route.Title @title={{compute (fn route.t 'title')}} />
|
|
|
|
</h1>
|
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="toolbar">
|
|
|
|
</BlockSlot>
|
2022-04-04 08:45:03 +00:00
|
|
|
<BlockSlot @name="nav">
|
2022-04-12 08:56:54 +00:00
|
|
|
|
|
|
|
{{#let
|
|
|
|
(from-entries (array
|
2022-06-09 17:15:52 +00:00
|
|
|
(array 'serverstatus' (compute (fn route.exists 'serverstatus')))
|
2022-04-12 08:56:54 +00:00
|
|
|
(array 'cataloghealth' false)
|
2022-06-09 17:15:52 +00:00
|
|
|
(array 'license' (compute (fn route.exists 'license')))
|
2022-04-12 08:56:54 +00:00
|
|
|
))
|
|
|
|
as |tabs|}}
|
|
|
|
|
|
|
|
{{#let (without false
|
|
|
|
(values tabs)
|
|
|
|
) as |tabsEnabled|}}
|
|
|
|
|
|
|
|
{{#if (gt tabsEnabled.length 1)}}
|
2022-03-15 12:58:14 +00:00
|
|
|
<TabNav @items={{
|
|
|
|
compact
|
|
|
|
(array
|
2022-04-12 08:56:54 +00:00
|
|
|
(if tabs.serverstatus
|
2022-03-15 12:58:14 +00:00
|
|
|
(hash
|
|
|
|
label=(compute (fn route.t 'serverstatus.title'))
|
|
|
|
href=(href-to "dc.show.serverstatus")
|
|
|
|
selected=(is-href "dc.show.serverstatus")
|
|
|
|
)
|
2022-04-12 08:56:54 +00:00
|
|
|
'')
|
|
|
|
(if tabs.cataloghealth
|
2022-03-15 12:58:14 +00:00
|
|
|
(hash
|
2022-04-04 08:45:03 +00:00
|
|
|
label=(compute (fn route.t 'cataloghealth.title'))
|
|
|
|
href=(href-to 'dc.show.cataloghealth')
|
|
|
|
selected=(is-href 'dc.show.cataloghealth')
|
2022-03-15 12:58:14 +00:00
|
|
|
)
|
2022-04-04 08:45:03 +00:00
|
|
|
'')
|
2022-04-12 08:56:54 +00:00
|
|
|
(if tabs.license
|
2022-03-15 12:58:14 +00:00
|
|
|
(hash
|
|
|
|
label=(compute (fn route.t 'license.title'))
|
|
|
|
href=(href-to 'dc.show.license')
|
|
|
|
selected=(is-href 'dc.show.license')
|
|
|
|
)
|
|
|
|
)
|
|
|
|
'')
|
|
|
|
}}/>
|
2022-04-04 08:45:03 +00:00
|
|
|
{{/if}}
|
2022-04-12 08:56:54 +00:00
|
|
|
|
|
|
|
{{/let}}
|
|
|
|
{{/let}}
|
2022-04-04 08:45:03 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="content">
|
|
|
|
<Outlet
|
|
|
|
@name={{routeName}}
|
|
|
|
@model={{route.model}}
|
|
|
|
as |o|>
|
|
|
|
{{outlet}}
|
|
|
|
</Outlet>
|
2022-03-15 12:58:14 +00:00
|
|
|
</BlockSlot>
|
|
|
|
|
|
|
|
</AppView>
|
|
|
|
</Route>
|