discourse/app/assets/javascripts/admin/templates/backups_index.js.handlebars

28 lines
1.3 KiB
Handlebars
Raw Normal View History

2014-02-12 23:35:46 -05:00
<table>
<tr>
<th width="40%">{{i18n admin.backups.columns.filename}}</th>
<th width="30%">{{i18n admin.backups.columns.size}}</th>
<th>
2014-02-21 19:41:01 -05:00
{{resumable-upload target="/admin/backups/upload" success="uploadSuccess" error="uploadError" uploadText=uploadText}}
<button {{action toggleReadOnlyMode}} class="btn" {{bind-attr disabled="readOnlyModeDisabled" title="readOnlyModeTitle"}}><i class="fa fa-eye"></i>{{readOnlyModeText}}</button>
2014-02-12 23:35:46 -05:00
</th>
</tr>
{{#each backup in model}}
<tr>
<td>{{backup.filename}}</td>
<td>{{humanSize backup.size}}</td>
<td>
<a {{bind-attr href="backup.link"}} class="btn download" title="{{i18n admin.backups.operations.download.title}}"><i class="fa fa-download"></i>{{i18n admin.backups.operations.download.text}}</a>
2014-02-21 19:41:01 -05:00
<button {{action destroyBackup backup}} class="btn btn-danger" {{bind-attr disabled="destroyDisabled" title="destroyTitle"}}><i class="fa fa-trash-o"></i>{{i18n admin.backups.operations.destroy.text}}</button>
2014-02-12 23:35:46 -05:00
<button {{action startRestore backup}} class="btn" {{bind-attr disabled="restoreDisabled" title="restoreTitle"}}><i class="fa fa-undo"></i>{{i18n admin.backups.operations.restore.text}}</button>
</td>
</tr>
{{else}}
<tr>
<td>{{i18n admin.backups.none}}</td>
<td></td>
<td></td>
</tr>
{{/each}}
</table>