mirror of https://github.com/hashicorp/consul
34 lines
907 B
Handlebars
34 lines
907 B
Handlebars
|
{{#if (gt items.length 0) }}
|
||
|
<form class="filter-bar">
|
||
|
{{freetext-filter onchange=(action 'filter') value=filter.s placeholder="Search by name"}}
|
||
|
</form>
|
||
|
{{/if}}
|
||
|
{{#if (gt filtered.length 0)}}
|
||
|
{{#tabular-collection
|
||
|
items=filtered as |item index|
|
||
|
}}
|
||
|
{{#block-slot 'header'}}
|
||
|
<th>Service</th>
|
||
|
<th>Port</th>
|
||
|
<th>Tags</th>
|
||
|
{{/block-slot}}
|
||
|
{{#block-slot 'row'}}
|
||
|
<td>
|
||
|
<a href={{href-to 'dc.services.show' item.Service }}>{{item.Service}}</a>
|
||
|
</td>
|
||
|
<td>
|
||
|
{{item.Port}}
|
||
|
</td>
|
||
|
<td>
|
||
|
{{#if (gt item.Tags.length 0)}}
|
||
|
{{join ', ' item.Tags}}
|
||
|
{{/if}}
|
||
|
</td>
|
||
|
{{/block-slot}}
|
||
|
{{/tabular-collection}}
|
||
|
{{else}}
|
||
|
<p>
|
||
|
There are no services.
|
||
|
</p>
|
||
|
{{/if}}
|