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

     1  {{#app-view class="service show"}}
     2      {{#block-slot 'breadcrumbs'}}
     3          <ol>
     4              <li><a data-test-back href={{href-to 'dc.services'}}>All Services</a></li>
     5          </ol>
     6      {{/block-slot}}
     7      {{#block-slot 'header'}}
     8        <h1>
     9          {{ item.Service.Service }}
    10  {{#with (service/external-source item.Service) as |externalSource| }}
    11    {{#with (css-var (concat '--' externalSource '-color-svg') 'none') as |bg| }}
    12      {{#if (not-eq bg 'none') }}
    13          <span data-test-external-source="{{externalSource}}" style={{{ concat 'background-image:' bg }}} data-tooltip="Registered via {{externalSource}}">Registered via {{externalSource}}</span>
    14      {{/if}}
    15    {{/with}}
    16  {{/with}}
    17        </h1>
    18      {{/block-slot}}
    19      {{#block-slot 'toolbar'}}
    20  {{#if (gt items.length 0) }}
    21          {{catalog-filter filters=healthFilters search=filters.s status=filters.status onchange=(action 'filter')}}
    22  {{/if}}
    23      {{/block-slot}}
    24      {{#block-slot 'content'}}
    25  {{#if (gt item.Tags.length 0)}}
    26          <dl>
    27              <dt>Tags</dt>
    28              <dd data-test-tags>
    29                {{#each item.Tags as |item|}}
    30                  <span>{{item}}</span>
    31                {{/each}}
    32              </dd>
    33          </dl>
    34  {{/if}}
    35  {{#if (gt unhealthy.length 0) }}
    36          <div data-test-unhealthy class="unhealthy">
    37              <h2>Unhealthy Nodes</h2>
    38              <div>
    39                  <ul>
    40      {{#each unhealthy as |item|}}
    41                      {{healthchecked-resource
    42                          tagName='li'
    43                          data-test-node=item.Node.Node
    44                          href=(href-to 'dc.nodes.show' item.Node.Node)
    45                          name=item.Node.Node
    46                          service=item.Service.ID
    47                          address=(concat (default item.Service.Address item.Node.Address) ':' item.Service.Port)
    48                          checks=item.Checks
    49                      }}
    50      {{/each}}
    51                  </ul>
    52              </div>
    53          </div>
    54  {{/if}}
    55  {{#if (gt healthy.length 0) }}
    56          <div data-test-healthy class="healthy">
    57              <h2>Healthy Nodes</h2>
    58              {{#list-collection cellHeight=113 items=healthy as |item index|}}
    59                  {{healthchecked-resource
    60                      href=(href-to 'dc.nodes.show' item.Node.Node)
    61                      data-test-node=item.Node.Node
    62                      name=item.Node.Node
    63                      service=item.Service.ID
    64                      address=(concat (default item.Service.Address item.Node.Address) ':' item.Service.Port)
    65                      checks=item.Checks
    66                      status=item.Checks.[0].Status
    67                  }}
    68              {{/list-collection}}
    69          </div>
    70  {{/if}}
    71      {{/block-slot}}
    72  {{/app-view}}