2014-02-13 12:35:46 +08:00
|
|
|
<table>
|
|
|
|
<tr>
|
2014-12-09 05:35:49 +08:00
|
|
|
<th width="55%">{{i18n 'admin.backups.columns.filename'}}</th>
|
|
|
|
<th width="10%">{{i18n 'admin.backups.columns.size'}}</th>
|
2014-04-23 17:20:22 +08:00
|
|
|
<th>
|
|
|
|
<div class="pull-right">
|
2015-03-27 01:05:27 +08:00
|
|
|
{{resumable-upload target="/admin/backups/upload" success="uploadSuccess" error="uploadError" uploadText=uploadLabel title="admin.backups.upload.title"}}
|
|
|
|
{{#if site.isReadOnly}}
|
2016-10-21 01:26:41 +08:00
|
|
|
{{d-button icon="eye" action="toggleReadOnlyMode" disabled=status.isOperationRunning title="admin.backups.read_only.disable.title" label="admin.backups.read_only.disable.label"}}
|
2015-03-27 01:05:27 +08:00
|
|
|
{{else}}
|
2016-10-21 01:26:41 +08:00
|
|
|
{{d-button icon="eye" action="toggleReadOnlyMode" disabled=status.isOperationRunning title="admin.backups.read_only.enable.title" label="admin.backups.read_only.enable.label"}}
|
2015-03-27 01:05:27 +08:00
|
|
|
{{/if}}
|
2014-04-23 17:20:22 +08:00
|
|
|
</div>
|
2014-02-13 12:35:46 +08:00
|
|
|
</th>
|
|
|
|
</tr>
|
2016-04-30 05:29:41 +08:00
|
|
|
{{#each model as |backup|}}
|
2014-02-13 12:35:46 +08:00
|
|
|
<tr>
|
|
|
|
<td>{{backup.filename}}</td>
|
2014-06-11 01:04:31 +08:00
|
|
|
<td>{{human-size backup.size}}</td>
|
2014-04-23 17:20:22 +08:00
|
|
|
<td>
|
|
|
|
<div class="pull-right">
|
2016-11-12 05:31:08 +08:00
|
|
|
{{d-button class="download"
|
|
|
|
action="download"
|
|
|
|
actionParam=backup
|
|
|
|
icon="download"
|
|
|
|
title="admin.backups.operations.download.title"
|
|
|
|
label="admin.backups.operations.download.label"}}
|
2016-10-21 01:26:41 +08:00
|
|
|
{{#if status.isOperationRunning}}
|
2015-07-31 00:31:14 +08:00
|
|
|
{{d-button icon="trash-o" action="destroyBackup" actionParam=backup class="btn-danger" disabled="true" title="admin.backups.operations.is_running"}}
|
2016-10-21 01:26:41 +08:00
|
|
|
{{d-button icon="play" action="startRestore" actionParam=backup disabled=status.restoreDisabled title=restoreTitle label="admin.backups.operations.restore.label"}}
|
2015-03-27 01:05:27 +08:00
|
|
|
{{else}}
|
2015-07-31 00:31:14 +08:00
|
|
|
{{d-button icon="trash-o" action="destroyBackup" actionParam=backup class="btn-danger" title="admin.backups.operations.destroy.title"}}
|
2016-10-21 01:26:41 +08:00
|
|
|
{{d-button icon="play" action="startRestore" actionParam=backup disabled=status.restoreDisabled title=restoreTitle label="admin.backups.operations.restore.label"}}
|
2015-03-27 01:05:27 +08:00
|
|
|
{{/if}}
|
2014-04-23 17:20:22 +08:00
|
|
|
</div>
|
2014-02-13 12:35:46 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{else}}
|
|
|
|
<tr>
|
2014-12-09 05:35:49 +08:00
|
|
|
<td>{{i18n 'admin.backups.none'}}</td>
|
2014-02-13 12:35:46 +08:00
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</table>
|