123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- {{!
- * 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.supportsHostOverrides}}
- {{#if selectedService.restartRequired}}
- <div class="alert">
- <div class="clearfix like_pointer collapsable" {{action toggleRestartMessageView target="view"}}>
- {{#if view.isRestartMessageCollapsed}}
- <i class="icon-caret-down pull-left"></i>
- {{else}}
- <i class="icon-caret-right pull-left"></i>
- {{/if}}
- <i class="icon-refresh"></i>
- <strong>{{t dashboard.services.configs.popup.restartService.header}}</strong> {{selectedService.restartRequiredMessage}}
- </div>
- <div class="service-body">
- <ul>
- {{#each host in selectedService.restartRequiredHostsAndComponents}}
- <li>
- <a href="#" {{action showDetails host.hostData}}>{{host.hostData.publicHostName}}</a>
- <ul>
- {{#each component in host.components}}
- <li>{{component.name}}</li>
- {{/each}}
- </ul>
- </li>
- {{/each}}
- </ul>
- </div>
- </div>
- {{/if}}
- {{/if}}
- {{#if view.supportsHostOverrides}}
- <div class="alert alert-info">
- {{t common.group}}
- <span class="btn-group">
- <button {{bindAttr disabled="controller.isHostsConfigsPage"}} class="btn dropdown-toggle"
- data-toggle="dropdown">{{selectedConfigGroup.displayNameHosts}}</button>
- <button {{bindAttr disabled="controller.isHostsConfigsPage"}} class="btn dropdown-toggle" data-toggle="dropdown">
- <span class="caret"></span>
- </button>
- <ul class="dropdown-menu">
- <!-- available config group menu links -->
- {{#each configGroup in configGroups}}
- <li>
- <a href="#" {{action "selectConfigGroup" configGroup target="controller"}}>
- {{configGroup.displayNameHosts}}
- </a>
- </li>
- {{/each}}
- </ul>
- </span>
- {{#isAccessible ADMIN}}
- {{#if controller.isHostsConfigsPage}}
- <a href="#" {{action "switchHostGroup" target="controller"}}>{{t common.change}}</a>
- {{else}}
- <a href="#" class="link-left-pad" {{action "manageConfigurationGroup" target="controller"}}>{{t services.service.actions.manage_configuration_groups.short}}</a>
- {{/if}}
- {{/isAccessible}}
- <div class="pull-right">
- {{view App.FilterComboCleanableView filterBinding="view.filter" columnsBinding="view.columns" popoverDescriptionBinding="view.propertyFilterPopover"}}
- </div>
- </div>
- {{/if}}
- {{#if view.showConfigHistoryFeature}}
- {{view App.ConfigHistoryFlowView serviceBinding="selectedService"}}
- {{/if}}
- {{#if versionLoaded}}
- {{#unless hideDependenciesInfoBar}}
- <div {{bindAttr class="hasChangedDependencies:show:hide :dependencies-info"}}>
- <div class="dependencies-info-bar-wrapper">
- <div class="alert alert-warning">
- <span>{{dependenciesMessage}}</span> <a
- href="#" {{action "showChangedDependentConfigs" target="controller"}}>{{t common.showDetails}}</a>
- </div>
- {{#if showSelectGroupsPopup}}
- <div class="alert alert-warning">
- <span>{{dependenciesGroupMessage}}</span> <a href="#" {{action "changedDependentGroup" target="controller"}}>{{t common.showDetails}}</a>
- </div>
- {{/if}}
- </div>
- </div>
- {{/unless}}
- {{#if view.supportsConfigLayout}}
- <ul class="nav nav-tabs mbm config-tabs">
- {{#each tab in view.tabs}}
- <li rel='tooltip' {{bindAttr class="tab.isActive:active tab.isHiddenByFilter:disabled" data-original-title="tab.tooltipMsg"}}>
- <a href="#" {{action "setActiveTab" tab target="view"}} {{bindAttr data-target="tab.headingClass"}} data-toggle="tab">
- {{tab.displayName}}
- {{#if tab.isAdvanced}}
- {{#if controller.errorsCount}}
- <span class="badge badge-important">{{controller.errorsCount}}</span>
- {{/if}}
- {{else}}
- {{#if tab.errorsCount}}
- <span class="badge badge-important">{{tab.errorsCount}}</span>
- {{/if}}
- {{/if}}
- </a>
- </li>
- {{/each}}
- </ul>
- <div class="tab-content service-config-tab-content">
- {{#each tab in view.tabs}}
- <div {{bindAttr class=":tab-pane tab.isActive:active tab.id"}}>
- {{#if tab.isAdvanced}}
- {{#if tab.isRendered}}
- {{#each category in selectedService.configCategories}}
- <div class="accordion">
- {{#if category.isCustomView}}
- {{view category.customView categoryBinding="category" serviceBinding="selectedService" canEditBinding="view.canEdit" serviceConfigsBinding="selectedService.configs"}}
- {{else}}
- {{view App.ServiceConfigsByCategoryView categoryBinding="category" canEditBinding="view.canEdit" serviceBinding="selectedService" serviceConfigsBinding="selectedService.configs" supportsHostOverridesBinding="view.supportsHostOverrides"}}
- {{/if}}
- </div>
- {{/each}}
- {{else}}
- <div class="spinner"></div>
- {{/if}}
- {{else}}
- {{! Render Enhanced Config Section }}
- {{view App.ServiceConfigLayoutTabView contentBinding="tab" canEditBinding="view.canEdit" }}
- {{/if}}
- </div>
- {{/each}}
- </div>
- {{else}}
- {{#each category in selectedService.configCategories}}
- <div class="accordion">
- {{#if category.isCustomView}}
- {{view category.customView categoryBinding="category" serviceBinding="selectedService" canEditBinding="view.canEdit" serviceConfigsBinding="selectedService.configs"}}
- {{else}}
- {{view App.ServiceConfigsByCategoryView categoryBinding="category" canEditBinding="view.canEdit" serviceBinding="selectedService" serviceConfigsBinding="selectedService.configs" supportsHostOverridesBinding="view.supportsHostOverrides"}}
- {{/if}}
- </div>
- {{/each}}
- {{/if}}
- {{#if view.isAllConfigsHidden}}
- <div class="alert alert-info col-sm-12">
- {{t services.service.config.nothing.to.display}}
- </div>
- {{/if}}
- {{else}}
- <div class="spinner"></div>
- {{/if}}
|