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

     1  {{#app-view class="node list"}}
     2      {{#block-slot 'header'}}
     3          <h1>
     4              Nodes
     5          </h1>
     6          <label for="toolbar-toggle"></label>
     7      {{/block-slot}}
     8      {{#block-slot 'toolbar'}}
     9  {{#if (gt items.length 0) }}
    10          {{catalog-filter filters=healthFilters search=filters.s status=filters.status onchange=(action 'filter')}}
    11  {{/if}}
    12      {{/block-slot}}
    13      {{#block-slot 'content'}}
    14  {{#if (gt unhealthy.length 0) }}
    15          <div class="unhealthy">
    16              <h2>Unhealthy Nodes</h2>
    17              <div>
    18                  {{! think about 2 differing views here }}
    19                  <ol>
    20      {{#each unhealthy as |item|}}
    21                      {{healthchecked-resource
    22                          tagName='li'
    23                          data-test-node=item.Node
    24                          href=(href-to 'dc.nodes.show' item.Node)
    25                          name=item.Node
    26                          address=item.Address
    27                          checks=item.Checks
    28                      }}
    29      {{/each}}
    30                  </ol>
    31              </div>
    32          </div>
    33  {{/if}}
    34  {{#if (gt healthy.length 0) }}
    35          <div class="healthy">
    36              <h2>Healthy Nodes</h2>
    37              {{#list-collection cellHeight=92 items=healthy as |item index|}}
    38                  {{healthchecked-resource
    39                      data-test-node=item.Node
    40                      href=(href-to 'dc.nodes.show' item.Node)
    41                      name=item.Node
    42                      address=item.Address
    43                      status=item.Checks.[0].Status
    44                  }}
    45              {{/list-collection}}
    46          </div>
    47  {{/if}}
    48  {{#if (and (eq healthy.length 0) (eq unhealthy.length 0)) }}
    49      <p>
    50          There are no nodes.
    51      </p>
    52  {{/if}}
    53      {{/block-slot}}
    54  {{/app-view}}