1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- {{!
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- }}
- <div {{bindAttr class="view.config.isHiddenByFilter:hide :widget :slider-widget"}}>
- {{#if view.isOriginalSCP}}
- <p class="widget-config-label">{{formatWordBreak view.configLabel}}</p>
- {{/if}}
- <div {{bindAttr class="view.isOriginalSCP:original-widget :ui-slider-wrapper"}}>
- <div class="pull-left ui-slider-wrapper-inner">{{view Ember.TextField valueBinding="view.config.value" class="input-mini slider-input"}}</div>
- <div class="pull-right ui-slider-label">{{view.mirrorValue}} {{view.config.stackConfigProperty.valueAttributes.unit}}</div>
- </div>
- <div class="clearfix">
- {{#if view.isOriginalSCP}}
- {{view App.RestoreConfigView visibleBinding="view.undoAllowed"}}
- {{/if}}
- {{#if view.overrideAllowed}}
- {{#isAccessible ADMIN}}
- <div class="pull-left action-button">
- <a class="btn btn-small" href="#" data-toggle="tooltip"
- {{action "createOverrideProperty" view.config target="view.parentView"}}
- {{translateAttr data-original-title="common.override"}}>
- <i class="icon-plus-sign"></i>
- </a>
- </div>
- {{/isAccessible}}
- {{/if}}
- </div>
- {{#if view.isComparison}}
- {{#if controller.selectedConfigGroup.isDefault}}
- <span
- class="label label-info">{{t dashboard.configHistory.table.version.prefix}}{{controller.selectedVersion}}</span>
- {{#if controller.isCurrentSelected}}
- <span class="label label-success">{{t common.current}}</span>
- {{/if}}
- {{else}}
- <span class="label label-info">{{t common.default}}
- {{t services.service.config.configHistory.configGroup}}</span>
- {{/if}}
- {{/if}}
- {{#if view.isOriginalSCP}}
- {{view App.SliderConfigWidgetOverrideView
- serviceConfigPropertyBinding="view.config"
- isDefaultGroupSelectedBinding="controller.selectedConfigGroup.isDefault"
- }}
- {{/if}}
- {{#if view.isComparison}}
- {{view App.SliderConfigWidgetComparisonView serviceConfigPropertyBinding="view.config"}}
- {{/if}}
- </div>
|