123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- {{!
- * 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.
- }}
- {{#if view.canEdit}}
- <div class="widget-config-controls">
- {{#if view.config.supportsFinal}}
- <a href="#" data-toggle="tooltip"
- {{bindAttr class=":widget-action :widget-action-final view.config.isFinal:active view.showFinalConfig:show:hide" disabled="view.config.isNotEditable"}}
- {{action "toggleFinalFlag" view.config target="view"}}
- {{translateAttr data-original-title="services.service.config.final"}}>
- <i class="icon-lock"></i>
- </a>
- {{/if}}
- {{#if view.overrideAllowed}}
- {{#isAccessible ADMIN}}
- <div {{bindAttr class=":widget-action :widget-action-override view.isHover:show:hide"}}>
- <a class="widget-action widget-action-override" 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}}
- {{#unless view.isOriginalSCP}}
- {{#isAccessible ADMIN}}
- <a {{bindAttr class=":widget-action :widget-action-remove view.isHover:show:hide"}} href="#" data-toggle="tooltip"
- {{action "removeOverride" view.config target="view.parentView"}}
- {{translateAttr data-original-title="common.remove"}}>
- <i class="icon-minus-sign"></i>
- </a>
- {{/isAccessible}}
- {{/unless}}
- {{#if view.config.isNotDefaultValue}}
- {{#if view.undoAllowed}}
- <a class="widget-action widget-action-undo" href="#" {{action "restoreValue" target="view"}}>
- <i class="icon-undo"></i>
- </a>
- {{/if}}
- {{/if}}
- </div>
- <div class="clearfix"></div>
- {{/if}}
- {{#if controller.selectedConfigGroup.isDefault}}
- {{#if view.configGroup}}
- <a href="#" data-toggle="tooltip" {{bindAttr data-original-title="view.configGroup.switchGroupTextFull" }}
- class="action" {{action selectConfigGroup view.configGroup target="controller"}}>
- {{view.configGroup.switchGroupTextShort}}
- </a>
- {{/if}}
- {{/if}}
- {{#if view.config.errorMessage}}
- <p class="text-error">{{view.config.errorMessage}}</p>
- {{else}}
- {{#if view.config.warnMessage}}
- <p class="text-warning">{{view.config.warnMessage}}</p>
- {{else}}
- <p> </p>
- {{/if}}
- {{/if}}
- {{#if view.isComparison}}
- <div class="widget-config-controls">
- {{#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}}
- </div>
- {{/if}}
- {{#if view.isOriginalSCP}}
- {{view App.ConfigWidgetOverrideView
- serviceConfigPropertyBinding="view.config"
- isDefaultGroupSelectedBinding="controller.selectedConfigGroup.isDefault"
- }}
- {{/if}}
- {{#if view.isComparison}}
- {{view App.ConfigWidgetComparisonView serviceConfigPropertyBinding="view.config"}}
- {{/if}}
|