versions.hbs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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="versions-filter-section">
  19. <div class="btn-group display-inline-block">
  20. <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
  21. <span class="filters-label">{{t common.filter}}: </span>
  22. <span>
  23. {{view.selectedCategory.label}}
  24. <span class="caret"></span>
  25. </span>
  26. </a>
  27. <ul class="dropdown-menu">
  28. {{#each category in view.categories}}
  29. <li>
  30. <a {{action selectCategory category target="view"}} href="#">
  31. {{category.label}}
  32. </a>
  33. </li>
  34. {{/each}}
  35. </ul>
  36. </div>
  37. {{#isAuthorized "AMBARI.MANAGE_STACK_VERSIONS"}}
  38. <button class="btn btn-primary pull-right" {{action goToVersions target="view"}} id="manage-versions-link">
  39. <i class="icon-external-link"></i>&nbsp;{{t admin.stackVersions.manageVersions}}
  40. </button>
  41. {{/isAuthorized}}
  42. </div>
  43. <div id="versions-section" class="row-fluid">
  44. <div class="span2 left-menu-table">
  45. <table class="table">
  46. <thead>
  47. <tr><th>{{t common.default}}</th></tr>
  48. </thead>
  49. <tbody>
  50. {{#each service in view.services}}
  51. <tr>
  52. <td class="service-display-name">{{service.displayName}}</td>
  53. </tr>
  54. {{/each}}
  55. </tbody>
  56. </table>
  57. </div>
  58. <div class="span10 versions-slides">
  59. {{#if isLoaded}}
  60. <div class="versions-slides-bar">
  61. {{#each version in view.repoVersions}}
  62. {{#if version.isVisible}}
  63. {{view App.UpgradeVersionColumnView contentBinding="version"}}
  64. {{/if}}
  65. {{/each}}
  66. </div>
  67. {{else}}
  68. {{view App.SpinnerView}}
  69. {{/if}}
  70. </div>
  71. </div>