2019-01-23 11:40:24 -05:00
|
|
|
<div class="backup-options">
|
|
|
|
{{#if localBackupStorage}}
|
|
|
|
{{resumable-upload
|
|
|
|
target="/admin/backups/upload"
|
|
|
|
success=(route-action "uploadSuccess")
|
|
|
|
error=(route-action "uploadError")
|
|
|
|
uploadText=uploadLabel
|
|
|
|
title="admin.backups.upload.title"
|
|
|
|
class="btn-default"}}
|
|
|
|
{{else}}
|
|
|
|
{{backup-uploader done=(route-action "remoteUploadSuccess")}}
|
|
|
|
{{/if}}
|
2018-10-14 21:43:31 -04:00
|
|
|
|
2019-01-23 11:40:24 -05:00
|
|
|
{{#if site.isReadOnly}}
|
|
|
|
{{d-button
|
|
|
|
class="btn-default"
|
|
|
|
icon="far-eye"
|
|
|
|
action=(action "toggleReadOnlyMode")
|
|
|
|
disabled=status.isOperationRunning
|
|
|
|
title="admin.backups.read_only.disable.title"
|
|
|
|
label="admin.backups.read_only.disable.label"}}
|
|
|
|
{{else}}
|
|
|
|
{{d-button
|
|
|
|
class="btn-default"
|
|
|
|
icon="far-eye"
|
|
|
|
action=(action "toggleReadOnlyMode")
|
|
|
|
disabled=status.isOperationRunning
|
|
|
|
title="admin.backups.read_only.enable.title"
|
|
|
|
label="admin.backups.read_only.enable.label"}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2018-07-02 23:14:53 -04:00
|
|
|
<table class="grid">
|
|
|
|
<thead>
|
2019-01-23 11:40:24 -05:00
|
|
|
<th width="55%">{{i18n "admin.backups.columns.filename"}}</th>
|
|
|
|
<th width="10%">{{i18n "admin.backups.columns.size"}}</th>
|
2018-10-14 21:43:31 -04:00
|
|
|
<th></th>
|
2018-07-02 23:14:53 -04:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2016-04-29 17:29:41 -04:00
|
|
|
{{#each model as |backup|}}
|
2014-02-12 23:35:46 -05:00
|
|
|
<tr>
|
2018-07-02 23:14:53 -04:00
|
|
|
<td class="backup-filename">{{backup.filename}}</td>
|
|
|
|
<td class="backup-size">{{human-size backup.size}}</td>
|
|
|
|
<td class="backup-controls">
|
|
|
|
<div>
|
2018-10-24 16:09:36 -04:00
|
|
|
{{d-button class="btn-default download"
|
2019-01-23 11:40:24 -05:00
|
|
|
action=(action "download")
|
|
|
|
actionParam=backup
|
|
|
|
icon="download"
|
|
|
|
title="admin.backups.operations.download.title"
|
|
|
|
label="admin.backups.operations.download.label"}}
|
2016-10-20 13:26:41 -04:00
|
|
|
{{#if status.isOperationRunning}}
|
2019-01-23 11:40:24 -05:00
|
|
|
{{d-button
|
|
|
|
icon="far-trash-alt"
|
|
|
|
action=(route-action "destroyBackup")
|
|
|
|
actionParam=backup class="btn-danger"
|
|
|
|
disabled="true"
|
|
|
|
title="admin.backups.operations.is_running"}}
|
|
|
|
{{d-button
|
|
|
|
icon="play"
|
|
|
|
action=(route-action "startRestore")
|
|
|
|
actionParam=backup disabled=status.restoreDisabled
|
|
|
|
class="btn-default"
|
|
|
|
title=restoreTitle
|
|
|
|
label="admin.backups.operations.restore.label"}}
|
2015-03-26 13:05:27 -04:00
|
|
|
{{else}}
|
2019-01-23 11:40:24 -05:00
|
|
|
{{d-button
|
|
|
|
icon="far-trash-alt"
|
|
|
|
action=(route-action "destroyBackup")
|
|
|
|
actionParam=backup
|
|
|
|
class="btn-danger"
|
|
|
|
title="admin.backups.operations.destroy.title"}}
|
|
|
|
{{d-button
|
|
|
|
icon="play"
|
|
|
|
action=(route-action "startRestore")
|
|
|
|
actionParam=backup
|
|
|
|
disabled=status.restoreDisabled
|
|
|
|
class="btn-default"
|
|
|
|
title=restoreTitle
|
|
|
|
label="admin.backups.operations.restore.label"}}
|
2015-03-26 13:05:27 -04:00
|
|
|
{{/if}}
|
2014-04-23 05:20:22 -04:00
|
|
|
</div>
|
2014-02-12 23:35:46 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{else}}
|
|
|
|
<tr>
|
2019-01-23 11:40:24 -05:00
|
|
|
<td>{{i18n "admin.backups.none"}}</td>
|
2014-02-12 23:35:46 -05:00
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
2018-07-02 23:14:53 -04:00
|
|
|
</tbody>
|
2014-02-12 23:35:46 -05:00
|
|
|
</table>
|