{{#if editing}} {{input value=buffered.host placeholder="example.com" enter="save" class="host-name"}} {{input value=buffered.class_name placeholder="class" enter="save" class="class-name"}} {{input value=buffered.path_whitelist placeholder="/blog/.*" enter="save" class="path-whitelist"}} {{category-chooser value=categoryId class="small"}} {{d-button icon="check" action="save" class="btn-primary" disabled=cantSave}} {{d-button icon="times" action="cancel" class="btn-danger" disabled=host.isSaving}} {{else}} {{host.host}} {{host.class_name}} {{host.path_whitelist}} {{category-badge host.category}} {{d-button icon="pencil" action="edit"}} {{d-button icon="trash-o" action="delete" class='btn-danger'}} {{/if}}