upgrade_version_column.hbs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. {{#if view.isOutOfSync}}
  19. <i class="icon-exclamation-sign out-of-sync-badge"></i>
  20. {{/if}}
  21. <p class="version-column-display-name">
  22. <span>{{view.content.displayNameSimple}}</span>
  23. </p>
  24. <p class="version-column-show-details">
  25. <a {{action openVersionBoxPopup target="view"}}>{{t admin.stackVersions.version.column.showDetails}}</a>
  26. </p>
  27. <div {{bindAttr class="view.stateElement.isInstalling:installing :align-center :state"}}>
  28. {{#if view.stateElement.isButton}}
  29. <button class="btn btn-primary"
  30. {{action runAction target="view"}}
  31. {{bindAttr disabled="view.stateElement.isDisabled"}}>
  32. {{view.stateElement.text}}
  33. </button>
  34. {{/if}}
  35. {{#if view.stateElement.isButtonGroup}}
  36. <div class="btn-group">
  37. <button class="btn btn-primary"
  38. {{action runAction target="view"}}
  39. {{bindAttr disabled="view.stateElement.isDisabled"}}>
  40. {{view.stateElement.text}}
  41. </button>
  42. <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown" {{bindAttr disabled="view.stateElement.isDisabled"}}>
  43. <span class="caret"></span>
  44. </button>
  45. <ul class="dropdown-menu">
  46. {{#each button in view.stateElement.buttons}}
  47. <li {{bindAttr class="button.isDisabled:disabled"}}>
  48. <a {{action runAction button.action target="view"}}>
  49. {{button.text}}
  50. </a>
  51. </li>
  52. {{/each}}
  53. </ul>
  54. </div>
  55. {{/if}}
  56. {{#if view.stateElement.isLabel}}
  57. <span {{bindAttr class="view.stateElement.class"}}>{{view.stateElement.text}}</span>
  58. {{/if}}
  59. {{#if view.stateElement.isLink}}
  60. {{#if view.stateElement.iconClass}}
  61. <i {{bindAttr class="view.stateElement.iconClass"}}></i>
  62. {{/if}}
  63. <a href="#" {{action runAction target="view"}}>{{view.stateElement.text}}</a>
  64. {{#if view.stateElement.isInstalling}}
  65. {{view App.ProgressBarView
  66. progressBinding="view.installProgress"
  67. statusBinding="view.PROGRESS_STATUS"
  68. }}
  69. {{/if}}
  70. {{/if}}
  71. {{#if view.stateElement.isSpinner}}
  72. {{view App.SpinnerView}}
  73. {{/if}}
  74. </div>
  75. <div class="services-section">
  76. {{#each service in view.services}}
  77. <div class="line-separator"></div>
  78. <p class="service-version-info">
  79. <span {{bindAttr class="service.isVersionInvisible:invisible :label"}}>{{service.latestVersion}}</span>
  80. </p>
  81. <div class="line-separator-bottom"></div>
  82. {{/each}}
  83. </div>