stack_versions.hbs 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. <a href="#" title='installed' {{action showHosts view.content.version view.content.installedHosts target="controller"}}>
  57. <span>{{view.content.installedHosts.length}}</span>
  58. </a>
  59. </td>
  60. <td>
  61. <a href="#" title='current' {{action showHosts view.content.version view.content.currentHosts target="controller"}}>
  62. <span>{{view.content.currentHosts.length}}</span>
  63. </a>
  64. </td>
  65. {{/view}}
  66. {{/each}}
  67. {{else}}
  68. <tr>
  69. <td class="first" colspan="5">
  70. {{t dashboard.configHistory.table.empty}}
  71. </td>
  72. </tr>
  73. {{/if}}
  74. </tbody>
  75. </table>
  76. <div class="page-bar">
  77. <div class="filtered-info span4">
  78. <label>{{view.filteredContentInfo}} - <a {{action clearFilters target="view"}}
  79. href="#">{{t tableView.filters.clearAllFilters}}</a></label>
  80. </div>
  81. <div class="items-on-page">
  82. <label>{{t common.show}}: {{view view.rowsPerPageSelectView selectionBinding="view.displayLength"}}</label>
  83. </div>
  84. <div class="info">{{view.paginationInfo}}</div>
  85. <div class="paging_two_button">
  86. {{view view.paginationLeft}}
  87. {{view view.paginationRight}}
  88. </div>
  89. </div>
  90. </div>