github.com/hernad/nomad@v1.6.112/ui/app/templates/components/attributes-section.hbs (about)

     1  {{!
     2    Copyright (c) HashiCorp, Inc.
     3    SPDX-License-Identifier: MPL-2.0
     4  ~}}
     5  
     6  {{#each-in this.attributes as |key value|}}
     7    {{#if (is-object value)}}
     8      <tr data-test-attributes-section>
     9        <td data-test-heading class="is-subheading" colspan="2">
    10          {{#if this.prefix}}<span class="is-faded" data-test-prefix>{{this.prefix}}.</span>{{/if}}{{key}}
    11        </td>
    12      </tr>
    13      <AttributesSection @prefix={{if this.prefix (concat this.prefix "." key) key}} @attributes={{value}}
    14      @key={{key}} @value={{value}} @editable={{@editable}} @onKVSave={{@onKVSave}} @copyable={{@copyable}} />
    15    {{else}}
    16      <MetadataKv @prefix={{this.prefix}}
    17      @key={{key}} @value={{value}} @editable={{@editable}} @onKVSave={{@onKVSave}} @copyable={{@copyable}} />
    18    {{/if}}
    19  {{/each-in}}