<!--顶部-->
<div class="subheader editor-toolbar clearfix" id="editor-header">
<div class="btn-group pull-left">
<div class="btn-toolbar pull-left" ng-controller="ToolbarController" ng-cloak>
<span ng-repeat="item in items">
<div style='float:left;margin-left: 10px;text-align: center;width: 30px;'>
<button id="{{item.id}}"
title="{{item.name | translate}}"
ng-switch on="item.type"
class="btn btn-inverse" ng-class="{'separator': item.type == 'separator'}"
ng-disabled="item.type == 'separator' || item.enabled == false"
ng-click="toolbarButtonClicked($index)">
<i ng-switch-when="button" ng-class="item.cssClass" class="toolbar-button" data-toggle="tooltip" data-title="{{item.name + '321'}}" bs-tooltip data-placement="bottom">
</i>
<div ng-switch-when="separator" ng-class="item.cssClass"></div>
</button>
<!-- <button class="btn-text">{{item.name}}</button> -->
</div></span>
<span>
<button title="还原" class="btn btn-inverse" ng-click="reLoad()" data-title="还原" data-html="true" bs-tooltip data-placement="bottom">
<span class='glyphicon glyphicon-refresh' style="color: #fff;"></span>
还原
</button>
</span>
<span ng-show='items.length>0'>
<button title="全局设置" data-title="全局设置" data-html="true" bs-tooltip data-placement="bottom" ng-disabled='selectedItem.properties[0].key!="oryx-process_id"' class="btn btn-inverse" ng-class="{'separator1': selectedItem.properties[0].key=='oryx-process_id'}" ng-click='global()'><span class='glyphicon glyphicon-cog' style="color: #fff;"></span> 全局设置</button>
</span>
</div>
</div>
<div class="btn-group pull-right" ng-show="!secondaryItems.length">
<div class="btn-toolbar pull-right" ng-controller="ToolbarController">
<button ng-repeat="item in secondaryItems" ng-switch on="item.type" class="btn btn-inverse" ng-class="{'separator': item.type == 'separator'}"
ng-disabled="item.type == 'separator'" ng-click="toolbarSecondaryButtonClicked($index)" id="{{item.id}}">
<i ng-switch-when="button" ng-class="item.cssClass" class="toolbar-button" data-title="{{item.name | translate}}" data-html="true" bs-tooltip data-placement="bottom"></i>
<div ng-switch-when="separator" ng-class="item.cssClass"></div>
</button>
</div>
</div>
</div>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…