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

36 lines
1.2 KiB
Handlebars
Raw Normal View History

2014-02-12 23:35:46 -05:00
<div class="admin-controls">
<div class="span15">
<ul class="nav nav-pills">
2015-07-11 08:09:12 -04: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-12 23:35:46 -05:00
</ul>
</div>
<div class="pull-right">
{{#if model.canRollback}}
{{d-button action="rollback"
class="btn-rollback"
2015-03-26 13:05:27 -04:00
label="admin.backups.operations.rollback.label"
title="admin.backups.operations.rollback.title"
icon="ambulance"
disabled=rollbackDisabled}}
2014-02-21 19:41:01 -05:00
{{/if}}
{{#if model.isOperationRunning}}
{{d-button action="cancelOperation"
class="btn-danger"
title="admin.backups.operations.cancel.title"
2015-03-26 13:05:27 -04:00
label="admin.backups.operations.cancel.label"
icon="times"}}
2014-02-12 23:35:46 -05:00
{{else}}
{{d-button action="startBackup"
class="btn-primary"
title="admin.backups.operations.backup.title"
2015-03-26 13:05:27 -04:00
label="admin.backups.operations.backup.label"
icon="rocket"}}
2014-02-12 23:35:46 -05:00
{{/if}}
</div>
</div>
<div class="admin-container">
{{outlet}}
</div>