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">
{{admin-nav-item route='admin.backups.index' label='admin.backups.menu.backups'}}
{{admin-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">
2014-02-22 08:41:01 +08:00
{{#if canRollback}}
{{d-button action="rollback"
class="btn-rollback"
label="admin.backups.operations.rollback.text"
title="admin.backups.operations.rollback.title"
icon="ambulance"
disabled=rollbackDisabled}}
2014-02-22 08:41:01 +08:00
{{/if}}
2014-02-13 12:35:46 +08:00
{{#if isOperationRunning}}
{{d-button action="cancelOperation"
class="btn-danger"
title="admin.backups.operations.cancel.title"
label="admin.backups.operations.cancel.text"
icon="times"}}
2014-02-13 12:35:46 +08:00
{{else}}
{{d-button action="startBackup"
class="btn-primary"
title="admin.backups.operations.backup.title"
label="admin.backups.operations.backup.text"
icon="rocket"}}
2014-02-13 12:35:46 +08:00
{{/if}}
</div>
</div>
<div class="admin-container">
{{outlet}}
</div>