configs.hbs 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {{!
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. }}
  18. <div id="serviceConfig">
  19. {{#if dataIsLoaded}}
  20. {{#if App.supports.hostOverrides}}
  21. {{#if controller.content.isRestartRequired}}
  22. {{#if App.isAdmin}}
  23. <div>
  24. <div class="alert alert-warning clearfix">
  25. <i class="icon-refresh"></i> {{{view.needToRestartMessage}}} {{t services.service.config.restartService.needToRestart}} <a href="#" {{action showComponentsShouldBeRestarted target="controller"}}>{{view.componentsCount}} {{pluralize view.componentsCount singular="t:common.component" plural="t:common.components"}}</a> {{t on}} <a href="#" {{action showHostsShouldBeRestarted target="controller"}}>{{view.hostsCount}} {{pluralize view.hostsCount singular="t:common.host" plural="t:common.hosts"}}</a>
  26. <span class="restart-components pull-right">&nbsp</span>
  27. <div class="btn-group pull-right">
  28. <button type="button" class="btn btn-default dropdown-toggle btn-warning" data-toggle="dropdown">
  29. {{t hosts.host.details.needToRestart.button}}
  30. <span class="caret"></span>
  31. </button>
  32. <ul class="dropdown-menu">
  33. <li><a href="#" {{action restartAllStaleConfigComponents target="controller"}}>{{t restart.service.all}}</a></li>
  34. {{#if view.rollingRestartSlaveComponentName}}
  35. <li><a href="#" {{action rollingRestartStaleConfigSlaveComponents view.rollingRestartSlaveComponentName target="controller"}}>{{view.rollingRestartActionName}}</a></li>
  36. {{/if}}
  37. </ul>
  38. </div>
  39. </div>
  40. </div>
  41. {{/if}}
  42. {{/if}}
  43. {{/if}}
  44. <div class="clearfix"></div>
  45. {{view App.ServiceConfigView filterBinding="controller.filter" columnsBinding="controller.filterColumns"}}
  46. {{#if App.isAdmin}}
  47. <p class="pull-right">
  48. <!--<input class="btn btn-primary" type="button" value="Save" {{!bindAttr disabled="isSubmitDisabled"}} />-->
  49. <a class="btn" {{action doCancel target="controller"}}>{{t common.cancel}}</a>
  50. <a class="btn btn-primary" {{bindAttr disabled="isSubmitDisabled"}}
  51. {{action restartServicePopup target="controller"}}>{{t common.save}}</a>
  52. </p>
  53. {{/if}}
  54. {{else}}
  55. <div class="spinner"></div>
  56. {{/if}}
  57. </div>