github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/ui/app/templates/components/attributes-section.hbs (about)

     1  {{#each-in this.attributes as |key value|}}
     2    {{#if (is-object value)}}
     3      <tr data-test-attributes-section>
     4        <td data-test-heading class="is-subheading" colspan="2">
     5          {{#if this.prefix}}<span class="is-faded" data-test-prefix>{{this.prefix}}.</span>{{/if}}{{key}}
     6        </td>
     7      </tr>
     8      <AttributesSection @prefix={{if this.prefix (concat this.prefix "." key) key}} @attributes={{value}} />
     9    {{else}}
    10      <tr data-test-attributes-section>
    11        <td data-test-key>
    12          {{#if this.prefix}}<span class="is-faded" data-test-prefix>{{this.prefix}}.</span>{{/if}}
    13          {{~key}}
    14        </td>
    15        <td data-test-value title="{{value}}">{{value}}</td>
    16      </tr>
    17    {{/if}}
    18  {{/each-in}}