discourse/app/assets/javascripts/admin/templates/backups.hbs

36 lines
1.2 KiB
Handlebars
Raw Normal View History

2014-02-13 12:35:46 +08:00
<div class="admin-controls">
<div class="span15">
<ul class="nav nav-pills">
2015-07-11 20:09:12 +08:00
{{nav-item route='admin.backups.index' label='admin.backups.menu.backups'}}
{{nav-item route='admin.backups.logs' label='admin.backups.menu.logs'}}
2014-02-13 12:35:46 +08:00
</ul>
</div>
<div class="pull-right">
{{#if model.canRollback}}
{{d-button action="rollback"
class="btn-rollback"
2015-03-27 01:05:27 +08:00
label="admin.backups.operations.rollback.label"
title="admin.backups.operations.rollback.title"
icon="ambulance"
disabled=rollbackDisabled}}
2014-02-22 08:41:01 +08:00
{{/if}}
{{#if model.isOperationRunning}}
{{d-button action="cancelOperation"
class="btn-danger"
title="admin.backups.operations.cancel.title"
2015-03-27 01:05:27 +08:00
label="admin.backups.operations.cancel.label"
icon="times"}}
2014-02-13 12:35:46 +08:00
{{else}}
{{d-button action="startBackup"
class="btn-primary"
title="admin.backups.operations.backup.title"
2015-03-27 01:05:27 +08:00
label="admin.backups.operations.backup.label"
icon="rocket"}}
2014-02-13 12:35:46 +08:00
{{/if}}
</div>
</div>
<div class="admin-container">
{{outlet}}
</div>