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

     1  {{#if (gt sessions.length 0)}}
     2      {{#tabular-collection
     3          data-test-sessions
     4          class="sessions"
     5          items=sessions as |item index|
     6      }}
     7          {{#block-slot 'header'}}
     8              <th>Name</th>
     9              <th>ID</th>
    10              <th>Delay</th>
    11              <th>TTL</th>
    12              <th>Behavior</th>
    13              <th>Checks</th>
    14              <th>&nbsp;</th>
    15          {{/block-slot}}
    16          {{#block-slot 'row'}}
    17                  <td>
    18                      {{item.Name}}
    19                  </td>
    20                  <td>
    21                      {{item.ID}}
    22                  </td>
    23                  <td>
    24                      {{item.LockDelay}}
    25                  </td>
    26                  <td data-test-session-ttl="{{item.TTL}}">
    27                      {{item.TTL}}
    28                  </td>
    29                  <td>
    30                      {{item.Behavior}}
    31                  </td>
    32                  <td>
    33  {{#if (gt item.Checks.length 0)}}
    34                      {{ join ', ' item.Checks}}
    35  {{/if}}
    36                  </td>
    37                  <td>
    38                      {{#confirmation-dialog message='Are you sure you want to invalidate this session?'}}
    39                          {{#block-slot 'action' as |confirm|}}
    40                              <button data-test-delete type="button" class="type-delete" {{action confirm 'invalidateSession' item}}>Invalidate</button>
    41                          {{/block-slot}}
    42                          {{#block-slot 'dialog' as |execute cancel message|}}
    43                              <p>
    44                                  {{message}}
    45                              </p>
    46                              <button type="button" class="type-delete" {{action execute}}>Confirm Invalidate</button>
    47                              <button type="button" class="type-cancel" {{ action cancel}}>Cancel</button>
    48                          {{/block-slot}}
    49                      {{/confirmation-dialog}}
    50                  </td>
    51          {{/block-slot}}
    52      {{/tabular-collection}}
    53  {{else}}
    54      <p>
    55          There are no Lock Sessions for this Node. For more information, view <a href="{{ env 'CONSUL_DOCUMENTATION_URL'}}/internals/sessions.html" rel="help noopener noreferrer" target="_blank">our documentation</a>
    56      </p>
    57  {{/if}}
    58