Skip to content

Commit

Permalink
feat(pagination): update to work with Bootstrap v4
Browse files Browse the repository at this point in the history
Addresses #840
  • Loading branch information
jrbotros authored and christianacca committed Oct 12, 2016
1 parent 5a095b6 commit dab0aef
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/browser/pager.html
Expand Up @@ -7,13 +7,13 @@
</button>
</div>
<ul ng-if="pages.length" class="pagination ng-table-pagination">
<li ng-class="{'disabled': !page.active && !page.current, 'active': page.current}" ng-repeat="page in pages" ng-switch="page.type">
<a ng-switch-when="prev" ng-click="params.page(page.number)" href="">&laquo;</a>
<a ng-switch-when="first" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"></span></a>
<a ng-switch-when="page" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"></span></a>
<a ng-switch-when="more" ng-click="params.page(page.number)" href="">&#8230;</a>
<a ng-switch-when="last" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"></span></a>
<a ng-switch-when="next" ng-click="params.page(page.number)" href="">&raquo;</a>
<li class="page-item" ng-class="{'disabled': !page.active && !page.current, 'active': page.current}" ng-repeat="page in pages" ng-switch="page.type">
<a class="page-link" ng-switch-when="prev" ng-click="params.page(page.number)" href="">&laquo;</a>
<a class="page-link" ng-switch-when="first" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"></span></a>
<a class="page-link" ng-switch-when="page" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"></span></a>
<a class="page-link" ng-switch-when="more" ng-click="params.page(page.number)" href="">&#8230;</a>
<a class="page-link" ng-switch-when="last" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"></span></a>
<a class="page-link" ng-switch-when="next" ng-click="params.page(page.number)" href="">&raquo;</a>
</li>
</ul>
</div>

0 comments on commit dab0aef

Please sign in to comment.