upgrade_version_box.hbs 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. <p class="version">
  19. <span>{{view.content.displayName}}</span>
  20. <a class="pull-right not-active link-tooltip" {{action editRepositories target="view"}}>
  21. <i class="icon-edit"></i>
  22. </a>
  23. </p>
  24. <div {{bindAttr class="view.stateElement.isInstalling:installing :align-center :state"}}>
  25. {{#if view.stateElement.isButton}}
  26. <button class="btn btn-primary" {{action runAction view.stateElement target="view"}}>{{view.stateElement.text}}</button>
  27. {{/if}}
  28. {{#if view.stateElement.isLabel}}
  29. <span {{bindAttr class="view.stateElement.class"}}>{{view.stateElement.text}}</span>
  30. {{/if}}
  31. {{#if view.stateElement.isLink}}
  32. {{#if view.stateElement.iconClass}}
  33. <i {{bindAttr class="view.stateElement.iconClass"}}></i>
  34. {{/if}}
  35. <a href="#" {{action runAction view.stateElement target="view"}}>{{view.stateElement.text}}</a>
  36. {{#if view.stateElement.isInstalling}}
  37. {{view App.ProgressBarView
  38. progressBinding="view.installProgress"
  39. statusBinding="view.PROGRESS_STATUS"
  40. }}
  41. {{/if}}
  42. {{/if}}
  43. </div>
  44. <div class="hosts-section">
  45. <div class="hosts-bar">{{t common.hosts}}</div>
  46. <div class="row-fluid host-link">
  47. <div class="span4 align-center">
  48. <div><a href="#" {{bindAttr class="view.content.noInitHosts:emply-hosts-tooltip:hosts-tooltip :not-active"}}
  49. {{action showHosts view.versionStateMap.not_installed view.content.repositoryVersion view.content.notInstalledHosts target="view"}}>
  50. {{view.content.notInstalledHosts.length}}</a></div>
  51. <div>{{t admin.stackVersions.version.notInstalled}}</div>
  52. </div>
  53. <div class="span4 align-center">
  54. <div><a href="#" {{bindAttr class="view.content.noInstalledHosts:emply-hosts-tooltip:hosts-tooltip :not-active"}}
  55. {{action showHosts view.versionStateMap.installed view.content.repositoryVersion view.content.installedHosts target="view"}}>
  56. {{view.content.installedHosts.length}}</a></div>
  57. <div>{{t common.installed}}</div>
  58. </div>
  59. <div class="span4 align-center">
  60. <div><a href="#" {{bindAttr class="view.content.noCurrentHosts:emply-hosts-tooltip:hosts-tooltip :not-active"}}
  61. {{action showHosts view.versionStateMap.current view.content.repositoryVersion view.content.currentHosts target="view"}}>
  62. {{view.content.currentHosts.length}}</a></div>
  63. <div>{{t common.current}}</div>
  64. </div>
  65. </div>
  66. </div>