2015-08-19 05:15:46 +08:00
|
|
|
{{#if editing}}
|
|
|
|
<td>
|
|
|
|
{{input value=buffered.host placeholder="example.com" enter="save" class="host-name"}}
|
|
|
|
</td>
|
2017-05-06 06:08:18 +08:00
|
|
|
<td>
|
|
|
|
{{input value=buffered.class_name placeholder="class" enter="save" class="class-name"}}
|
|
|
|
</td>
|
2016-08-24 02:55:52 +08:00
|
|
|
<td>
|
|
|
|
{{input value=buffered.path_whitelist placeholder="/blog/.*" enter="save" class="path-whitelist"}}
|
|
|
|
</td>
|
2015-08-19 05:15:46 +08:00
|
|
|
<td>
|
2017-10-20 03:51:08 +08:00
|
|
|
{{category-chooser value=categoryId class="small"}}
|
2015-08-19 05:15:46 +08:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{d-button icon="check" action="save" class="btn-primary" disabled=cantSave}}
|
|
|
|
{{d-button icon="times" action="cancel" class="btn-danger" disabled=host.isSaving}}
|
|
|
|
</td>
|
|
|
|
{{else}}
|
|
|
|
<td>{{host.host}}</td>
|
2017-05-06 06:08:18 +08:00
|
|
|
<td>{{host.class_name}}</td>
|
2016-08-24 02:55:52 +08:00
|
|
|
<td>{{host.path_whitelist}}</td>
|
2015-08-19 05:15:46 +08:00
|
|
|
<td>{{category-badge host.category}}</td>
|
|
|
|
<td>
|
|
|
|
{{d-button icon="pencil" action="edit"}}
|
|
|
|
{{d-button icon="trash-o" action="delete" class='btn-danger'}}
|
|
|
|
</td>
|
|
|
|
{{/if}}
|