github.com/outbrain/consul@v1.4.5/ui-v2/app/templates/dc/nodes/-services.hbs (about)

     1  {{#if (gt items.length 0) }}
     2      <input type="checkbox" id="toolbar-toggle" />
     3      <form class="filter-bar">
     4          {{freetext-filter onchange=(action 'filter') value=filter.s placeholder="Search by name/port"}}
     5      </form>
     6  {{/if}}
     7  {{#if (gt filtered.length 0)}}
     8      {{#tabular-collection
     9          data-test-services
    10          items=filtered as |item index|
    11      }}
    12          {{#block-slot 'header'}}
    13              <th>Service</th>
    14              <th>Port</th>
    15              <th>Tags</th>
    16          {{/block-slot}}
    17          {{#block-slot 'row'}}
    18              <td data-test-service-name="{{item.Service}}">
    19                <a href={{href-to 'dc.services.show' item.Service}}>
    20                  <span data-test-external-source="{{service/external-source item}}" style={{{ concat 'background-image: ' (css-var (concat '--' (service/external-source item) '-color-svg') 'none')}}}></span>
    21                  {{item.Service}}{{#if (not-eq item.ID item.Service) }}<em data-test-service-id="{{item.ID}}">({{item.ID}})</em>{{/if}}
    22                </a>
    23              </td>
    24              <td data-test-service-port="{{item.Port}}" class="port">
    25                  {{item.Port}}
    26              </td>
    27              <td data-test-service-tags class="tags">
    28                  {{#if (gt item.Tags.length 0)}}
    29                    {{#each item.Tags as |item|}}
    30                      <span>{{item}}</span>
    31                    {{/each}}
    32                  {{/if}}
    33              </td>
    34          {{/block-slot}}
    35      {{/tabular-collection}}
    36  {{else}}
    37      <p>
    38          There are no services.
    39      </p>
    40  {{/if}}