travis-web/assets/scripts/app/templates/env_vars.hbs
2014-08-19 15:29:02 +02:00

27 lines
764 B
Handlebars

{{outlet}}
<ul class="env-vars">
{{#each controller itemController="envVar"}}
{{#if isEditing}}
{{partial 'env_vars/form'}}
{{else}}
<li class="env-var">
<div class="row env-var-name">
<span class="label">Name:</span>
<span class="value">{{name}}</span>
</div>
<div class="row env-var-value">
<span class="label">Value:</span>
<span class="value value-display">{{value}}</span>
</div>
<div class="actions">
<a href="#" class="edit-var" {{action "edit"}}>Edit</a>
<a href="#" {{action "delete"}} {{bind-attr class=":delete-var isDeleting:deleting"}}>
Delete
</a>
</div>
</li>
{{/if}}
{{/each}}
</ul>