ui/lib/shared/addon/components/pod-dots/template.hbs

27 lines
994 B
Handlebars

{{#if groupByPod}}
{{#each grouped as |group|}}
<div class="dot-group bg-default">
{{#each group as |item|}}
{{#tooltip-element type="tooltip-basic" model=item.name tooltipTemplate='tooltip-static' aria-describedby="tooltip-base" tooltipFor="containerDot"}}
<i class="{{item.pod.stateIcon}} {{item.pod.stateColor}} dot hand" alt={{alt}}></i>
{{/tooltip-element}}
{{/each}}
</div>
{{/each}}
{{else}}
{{#each pagedContent as |item|}}
{{container-dot model=item.pod}}
{{else}}
<div class="text-center text-muted pt-20 pb-20">
{{#if searchText}}
{{t 'containersPage.table.noMatch'}}
{{else}}
{{t 'containersPage.table.noData'}}
{{/if}}
</div>
{{/each}}
{{/if}}
{{#if (gt filtered.length pagedContent.length)}}
{{page-numbers content=pagedContent class="text-center mt-10 mb-10 no-select" indexTo=indexTo indexFrom=indexFrom totalCount=filtered.length textLabel="pagination.container"}}
{{/if}}