Revision 55fc3310
Added by Walden Raines almost 10 years ago
engines/bastion/app/assets/javascripts/bastion/content-hosts/content/views/content-host-packages.html | ||
---|---|---|
</div>
|
||
|
||
<div alch-table="currentPackagesTable">
|
||
<div alch-container-scroll control-width="table" alch-infinite-scroll="currentPackagesTable.nextPage()" data="currentPackagesTable.rows">
|
||
<div alch-container-scroll control-width="table" alch-infinite-scroll="currentPackagesTable.loadMorePackages()" data="currentPackagesTable.rows">
|
||
<table ng-class="{'table-mask': currentPackagesTable.working}" class="table table-striped">
|
||
<thead>
|
||
<tr alch-table-head>
|
||
... | ... | |
</thead>
|
||
|
||
<tbody>
|
||
<tr alch-table-row ng-repeat="package in currentPackagesTable.rows | filter:currentPackagesTable.filter" >
|
||
|
||
<tr alch-table-row ng-repeat="package in currentPackagesTable.rows | filter: currentPackagesTable.filter | limitTo: currentPackagesTable.limit" >
|
||
<td alch-table-cell>{{ package.nvrea }}</td>
|
||
<td alch-table-cell ng-hide="currentPackagesTable.contentHost.readonly">
|
||
|
Also available in: Unified diff
Fixes #7000/BZ1080172: paginate content host packages.
Rendering hundreds of content host package rows was taxing the CPU,
especially in Firefox. This commit uses client side pagination to
limit the number of package rows rendered.
http://projects.theforeman.org/issues/7000
https://bugzilla.redhat.com/show_bug.cgi?id=1080172