123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- {{!
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- }}
- {{view App.StackVersionMenuView}}
- <div id="stack_versions">
- <table class="table advanced-header-table table-bordered table-striped">
- <thead>
- {{#view view.sortView classNames="label-row" contentBinding="view.filteredContent"}}
- {{view view.parentView.stackNameSort}}
- {{view view.parentView.stackVersionSort}}
- {{view view.parentView.osSort}}
- {{view view.parentView.installedSort}}
- {{view view.parentView.currentSort}}
- {{/view}}
- <tr class="filter-row">
- <th class="first stack-name-filter">{{view view.stackNameFilterView}}</th>
- <th class="repo-version-filter">{{view view.stackVersionFilterView}}</th>
- <th class="os-type-filter">{{view view.osFilterView}}</th>
- <th class="installed-hosts-filter">{{view view.installedFilterView}}</th>
- <th class="current-hosts-filter">{{view view.currentFilterView}}</th>
- </tr>
- </thead>
- <tbody class="services-menu">
- {{#if view.pageContent}}
- {{#each item in view.pageContent}}
- {{#view view.StackVersionView contentBinding="item"}}
- <td class="first stack-name">
- <span class="stack-name">{{view.content.name}}</span>
- </td>
- <td class="repo-version">
- <a href="#/main/admin/versions/{{unbound view.content.id}}">{{view.content.repositoryVersion.displayName}}</a>
- </td>
- <td class="os-types">
- {{view App.OperatingSystemsView contentBinding="view.content.repositoryVersion"}}
- </td>
- <td class="installed-hosts-count">
- <span {{bindAttr class="view.content.noInstalledHosts:not-active-link"}}>
- <a href="#"
- title='installed' {{action showHosts view.content.repositoryVersion.displayName view.content.installedHosts target="controller"}}>
- <span>{{view.content.installedHosts.length}}</span>
- </a>
- </span>
- </td>
- <td class="current-hosts-count">
- <span {{bindAttr class="view.content.noCurrentHosts:not-active-link"}}>
- <a href="#"
- title='current' {{action showHosts view.content.repositoryVersion.displayName view.content.currentHosts target="controller"}}>
- <span>{{view.content.currentHosts.length}}</span>
- </a>
- </span>
- </td>
- {{/view}}
- {{/each}}
- {{else}}
- <tr>
- <td class="first empty-table" colspan="5">
- {{t admin.stackVersions.table.empty}}
- </td>
- </tr>
- {{/if}}
- </tbody>
- </table>
- <div class="page-bar">
- <div class="filtered-info span4">
- <label>{{view.filteredContentInfo}} - <a {{action clearFilters target="view"}}
- href="#">{{t tableView.filters.clearAllFilters}}</a></label>
- </div>
- <div class="items-on-page">
- <label>{{t common.show}}: {{view view.rowsPerPageSelectView selectionBinding="view.displayLength"}}</label>
- </div>
- <div class="info">{{view.paginationInfo}}</div>
- <div class="paging_two_button">
- {{view view.paginationLeft}}
- {{view view.paginationRight}}
- </div>
- </div>
- </div>
|