mirror of https://github.com/rancher/ui.git
64 lines
2.9 KiB
Handlebars
64 lines
2.9 KiB
Handlebars
<section class="header has-tabs clearfix p-0">
|
|
<ul class="tab-nav">
|
|
{{#if (rbac-allows resource="workload" scope="project" permission="list")}}
|
|
<li>{{#link-to "containers.index" scope.currentProject.id}}{{t 'nav.containers.containers'}}{{/link-to}}</li>
|
|
{{/if}}
|
|
{{#if (rbac-allows resource="ingress" scope="project" permission="list")}}
|
|
<li>{{#link-to "ingresses.index" scope.currentProject.id}}{{t 'nav.containers.ingresses'}}{{/link-to}}</li>
|
|
{{/if}}
|
|
{{#if (rbac-allows resource="dnsrecord" scope="project" permission="list")}}
|
|
<li>{{#link-to "authenticated.project.dns.index" scope.currentProject.id}}{{t 'nav.containers.dns'}}{{/link-to}}</li>
|
|
{{/if}}
|
|
<li>{{#link-to "volumes.index" scope.currentProject.id}}{{t 'nav.containers.volumes'}}{{/link-to}}</li>
|
|
</ul>
|
|
|
|
<div class="right-buttons">
|
|
{{#if (and (not simpleMode) tagChoices)}}
|
|
<div class="input-group inline-block mr-10">
|
|
<span class="input-group-btn inline-block">
|
|
<button type="button" class="btn btn-sm bg-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="icon icon-tag"></i> {{if tags tags "All"}} <i class="icon icon-chevron-down"></i></button>
|
|
<ul class="dropdown-menu" role="menu">
|
|
<li role="presentation" class="dropdown-header">
|
|
Stack Tags
|
|
</li>
|
|
<li>
|
|
<a {{action "setTags" ""}}>
|
|
<i class="icon icon-tag"></i>
|
|
All
|
|
</a>
|
|
</li>
|
|
<li class="divider"></li>
|
|
{{#each tagChoices as |tag|}}
|
|
<li>
|
|
<a {{action "setTags" tag}}>
|
|
<i class="icon icon-tag"></i>
|
|
{{tag}}
|
|
</a>
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
</span>
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{#if showGroup}}
|
|
<div class="btn-group p-0 mr-10">
|
|
|
|
{{#tooltip-element type="tooltip-basic" model=(t 'nav.group.none') tooltipTemplate='tooltip-static' aria-describedby="tooltip-base" tooltipFor="tooltipLink"}}
|
|
{{#link-to (query-params group="none") classNames="btn btn-sm bg-default"}}<i class="icon icon-container"></i>{{/link-to}}
|
|
{{/tooltip-element}}
|
|
|
|
{{#tooltip-element type="tooltip-basic" model=(t 'nav.group.workload') tooltipTemplate='tooltip-static' aria-describedby="tooltip-base" tooltipFor="tooltipLink"}}
|
|
{{#link-to (query-params group="workload") classNames="btn btn-sm bg-default"}}<i class="icon icon-service"></i>{{/link-to}}
|
|
{{/tooltip-element}}
|
|
|
|
{{#tooltip-element type="tooltip-basic" model=(t 'nav.group.namespaceWorkload') tooltipTemplate='tooltip-static' aria-describedby="tooltip-base" tooltipFor="tooltipLink"}}
|
|
{{#link-to (query-params group="namespace") classNames="btn btn-sm bg-default"}}<i class="icon icon-list-nested"></i>{{/link-to}}
|
|
{{/tooltip-element}}
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{yield}}
|
|
</div>
|
|
</section>
|