stack_versions.hbs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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="stack_versions">
  19. <table class="table advanced-header-table table-bordered table-striped">
  20. <thead>
  21. {{#view view.sortView classNames="label-row" contentBinding="view.filteredContent"}}
  22. {{view view.parentView.stackNameSort}}
  23. {{view view.parentView.stackVersionSort}}
  24. {{view view.parentView.osSort}}
  25. {{view view.parentView.istalledSort}}
  26. {{view view.parentView.currentSort}}
  27. {{/view}}
  28. <tr class="filter-row">
  29. <th class="first">{{view view.stackNameFilterView}}</th>
  30. <th>{{view view.stackVersionFilterView}}</th>
  31. <th>{{view view.osFilterView}}</th>
  32. <th>{{view view.currentFilterView}}</th>
  33. <th>{{view view.installedFilterView}}</th>
  34. </tr>
  35. </thead>
  36. <tbody class="services-menu">
  37. {{#if view.pageContent}}
  38. {{#each item in view.pageContent}}
  39. {{#view view.StackVersionView contentBinding="item"}}
  40. <td class="first">
  41. <a href="#/main/admin/versions/{{unbound view.content.id}}" class="stack-name">{{view.content.name}}</a>
  42. </td>
  43. <td>
  44. <span class="stack-version">{{view.content.version}}</span>
  45. </td>
  46. <td>
  47. <a href="#" class="os-expander" {{action toggleOs target="view"}}>
  48. <span {{bindAttr class="view.isOsCollapsed:icon-caret-right:icon-caret-down"}}></span>
  49. {{view.content.operatingSystems.length}} {{pluralize view.content.operatingSystems.length singular="t:common.os" plural="t:common.oss"}}
  50. </a>
  51. <div id="stack-{{view.content.name}}" class="operating-systems">
  52. {{{view.labels}}}
  53. </div>
  54. </td>
  55. <td>
  56. <span>{{view.content.installedHosts.length}}</span>
  57. </td>
  58. <td>
  59. <span>{{view.content.currentHosts.length}}</span>
  60. </td>
  61. {{/view}}
  62. {{/each}}
  63. {{else}}
  64. <tr>
  65. <td class="first" colspan="5">
  66. {{t dashboard.configHistory.table.empty}}
  67. </td>
  68. </tr>
  69. {{/if}}
  70. </tbody>
  71. </table>
  72. <div class="page-bar">
  73. <div class="filtered-info span4">
  74. <label>{{view.filteredContentInfo}} - <a {{action clearFilters target="view"}}
  75. href="#">{{t tableView.filters.clearAllFilters}}</a></label>
  76. </div>
  77. <div class="items-on-page">
  78. <label>{{t common.show}}: {{view view.rowsPerPageSelectView selectionBinding="view.displayLength"}}</label>
  79. </div>
  80. <div class="info">{{view.paginationInfo}}</div>
  81. <div class="paging_two_button">
  82. {{view view.paginationLeft}}
  83. {{view view.paginationRight}}
  84. </div>
  85. </div>
  86. </div>