Merge pull request #96 from glyptodon/paginate-history

GUAC-1099: Paginate the connection history list, too.
This commit is contained in:
James Muehlner
2015-02-28 13:39:35 -08:00

View File

@@ -86,6 +86,8 @@ THE SOFTWARE.
<h2>{{'MANAGE_CONNECTION.SECTION_HEADER_HISTORY' | translate}}</h2> <h2>{{'MANAGE_CONNECTION.SECTION_HEADER_HISTORY' | translate}}</h2>
<div class="history section" ng-class="{loading: !historyEntryWrappers}"> <div class="history section" ng-class="{loading: !historyEntryWrappers}">
<p ng-hide="historyEntryWrappers.length">{{'MANAGE_CONNECTION.INFO_CONNECTION_NOT_USED' | translate}}</p> <p ng-hide="historyEntryWrappers.length">{{'MANAGE_CONNECTION.INFO_CONNECTION_NOT_USED' | translate}}</p>
<!-- History list -->
<table ng-show="historyEntryWrappers.length"> <table ng-show="historyEntryWrappers.length">
<thead> <thead>
<tr> <tr>
@@ -95,13 +97,17 @@ THE SOFTWARE.
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="wrapper in historyEntryWrappers"> <tr ng-repeat="wrapper in wrapperPage">
<td class="username">{{wrapper.entry.username}}</td> <td class="username">{{wrapper.entry.username}}</td>
<td class="start">{{wrapper.entry.startDate | date:'short'}}</td> <td class="start">{{wrapper.entry.startDate | date:'short'}}</td>
<td class="duration">{{wrapper.durationText | translate:"{VALUE: wrapper.duration.value, UNIT: wrapper.duration.unit}"}}</td> <td class="duration">{{wrapper.durationText | translate:"{VALUE: wrapper.duration.value, UNIT: wrapper.duration.unit}"}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<!-- Pager controls for history list -->
<guac-pager page="wrapperPage" items="historyEntryWrappers"></guac-pager>
</div> </div>
</div> </div>