lemur/lemur/static/app/angular/pager.html

23 lines
1.6 KiB
HTML

<div class="panel-footer">
<div class="ng-cloak ng-table-pager" ng-if="params.data.length">
<div ng-if="params.settings().counts.length" class="ng-table-counts btn-group">
<button ng-repeat="count in params.settings().counts" type="button" ng-class="{'active':params.count()==count}" ng-click="params.count(count)" class="btn btn-default">
<span ng-bind="count"></span>
</button>
<div class="centered-cell">
<span ng-bind="params.data.total"></span>&#160;Found
</div>
</div>
<div class="btn-group pull-right">
<span ng-repeat="page in pages" ng-switch="page.type" ng-class="{'disabled': !page.active && !page.current, 'active': page.current}">
<button type="button" class="btn btn-primary" ng-switch-when="prev" ng-click="params.page(page.number)" href="">Previous</button>
<button type="button" class="btn btn-primary" ng-switch-when="first" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"></span></button>
<button type="button" class="btn btn-primary" ng-switch-when="page" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"></span></button>
<button type="button" class="btn btn-primary" ng-switch-when="more" ng-click="params.page(page.number)" href="">&#8230;</button>
<button type="button" class="btn btn-primary" ng-switch-when="last" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"></span></button>
<button type="button" class="btn btn-primary" ng-switch-when="next" ng-click="params.page(page.number)" href="">Next</button>
</span>
</div>
</div>
</div>