travis-web/assets/scripts/app/templates/env_vars.hbs
2014-08-20 14:41:31 +02:00

20 lines
552 B
Handlebars

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