open-nomad/ui/app/templates/components/attributes-section.hbs

19 lines
519 B
Handlebars
Raw Normal View History

2017-09-19 14:47:10 +00:00
{{#each-in attributes as |key value|}}
{{#if (is-object value)}}
<tr>
<td class="is-subheading" colspan="2">
{{#if prefix}}<span class="is-faded">{{prefix}}.</span>{{/if}}{{key}}
</td>
</tr>
{{attributes-section prefix=(if prefix (concat prefix '.' key) key) attributes=value}}
{{else}}
<tr>
<td>
{{#if prefix}}<span class="is-faded">{{prefix}}.</span>{{/if}}
{{~key}}
</td>
<td title="{{value}}">{{value}}</td>
</tr>
{{/if}}
{{/each-in}}