stack_versions.hbs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. {{view App.StackVersionMenuView}}
  19. <div id="stack_versions">
  20. <table class="table advanced-header-table table-bordered table-striped">
  21. <thead>
  22. {{#view view.sortView classNames="label-row" contentBinding="view.filteredContent"}}
  23. {{view view.parentView.stackNameSort}}
  24. {{view view.parentView.stackVersionSort}}
  25. {{view view.parentView.osSort}}
  26. {{view view.parentView.installedSort}}
  27. {{view view.parentView.currentSort}}
  28. {{/view}}
  29. <tr class="filter-row">
  30. <th class="first stack-name-filter">{{view view.stackNameFilterView}}</th>
  31. <th class="repo-version-filter">{{view view.stackVersionFilterView}}</th>
  32. <th class="os-type-filter">{{view view.osFilterView}}</th>
  33. <th class="installed-hosts-filter">{{view view.installedFilterView}}</th>
  34. <th class="current-hosts-filter">{{view view.currentFilterView}}</th>
  35. </tr>
  36. </thead>
  37. <tbody class="services-menu">
  38. {{#if view.pageContent}}
  39. {{#each item in view.pageContent}}
  40. {{#view view.StackVersionView contentBinding="item"}}
  41. <td class="first stack-name">
  42. <span class="stack-name">{{view.content.name}}</span>
  43. </td>
  44. <td class="repo-version">
  45. <a href="#/main/admin/versions/{{unbound view.content.id}}">{{view.content.repositoryVersion.displayName}}</a>
  46. </td>
  47. <td class="os-types">
  48. {{view App.OperatingSystemsView contentBinding="view.content.repositoryVersion"}}
  49. </td>
  50. <td class="installed-hosts-count">
  51. <span {{bindAttr class="view.content.noInstalledHosts:not-active-link"}}>
  52. <a href="#"
  53. title='installed' {{action showHosts view.content.repositoryVersion.displayName view.content.installedHosts target="controller"}}>
  54. <span>{{view.content.installedHosts.length}}</span>
  55. </a>
  56. </span>
  57. </td>
  58. <td class="current-hosts-count">
  59. <span {{bindAttr class="view.content.noCurrentHosts:not-active-link"}}>
  60. <a href="#"
  61. title='current' {{action showHosts view.content.repositoryVersion.displayName view.content.currentHosts target="controller"}}>
  62. <span>{{view.content.currentHosts.length}}</span>
  63. </a>
  64. </span>
  65. </td>
  66. {{/view}}
  67. {{/each}}
  68. {{else}}
  69. <tr>
  70. <td class="first empty-table" colspan="5">
  71. {{t admin.stackVersions.table.empty}}
  72. </td>
  73. </tr>
  74. {{/if}}
  75. </tbody>
  76. </table>
  77. <div class="page-bar">
  78. <div class="filtered-info span4">
  79. <label>{{view.filteredContentInfo}} - <a {{action clearFilters target="view"}}
  80. href="#">{{t tableView.filters.clearAllFilters}}</a></label>
  81. </div>
  82. <div class="items-on-page">
  83. <label>{{t common.show}}: {{view view.rowsPerPageSelectView selectionBinding="view.displayLength"}}</label>
  84. </div>
  85. <div class="info">{{view.paginationInfo}}</div>
  86. <div class="paging_two_button">
  87. {{view view.paginationLeft}}
  88. {{view view.paginationRight}}
  89. </div>
  90. </div>
  91. </div>