BUGFIX: backups logs page was busted since last Ember update
This commit is contained in:
parent
913c4f7b6e
commit
ff1823beca
|
@ -16,6 +16,8 @@ Discourse.AdminBackupsLogsRoute = Discourse.Route.extend({
|
||||||
logsController.pushObjects(logs);
|
logsController.pushObjects(logs);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
|
|
||||||
|
setupController: function() { /* prevent default behavior */ }
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,20 +1,24 @@
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th width="50%">{{i18n admin.backups.columns.filename}}</th>
|
<th width="55%">{{i18n admin.backups.columns.filename}}</th>
|
||||||
<th width="10%">{{i18n admin.backups.columns.size}}</th>
|
<th width="10%">{{i18n admin.backups.columns.size}}</th>
|
||||||
<th class="pull-right">
|
<th>
|
||||||
{{resumable-upload target="/admin/backups/upload" success="uploadSuccess" error="uploadError" uploadText=uploadText}}
|
<div class="pull-right">
|
||||||
<button {{action toggleReadOnlyMode}} class="btn" {{bind-attr disabled="readOnlyModeDisabled" title="readOnlyModeTitle"}}><i class="fa fa-eye"></i>{{readOnlyModeText}}</button>
|
{{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>
|
||||||
|
</div>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
{{#each backup in model}}
|
{{#each backup in model}}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{backup.filename}}</td>
|
<td>{{backup.filename}}</td>
|
||||||
<td>{{humanSize backup.size}}</td>
|
<td>{{humanSize backup.size}}</td>
|
||||||
<td class="pull-right">
|
<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>
|
<div class="pull-right">
|
||||||
<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>
|
<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>
|
||||||
<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>
|
<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>
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
Loading…
Reference in New Issue