Matteo Scandolo | 500e4c4 | 2017-08-08 13:05:24 -0700 | [diff] [blame^] | 1 | |
| 2 | <!-- |
| 3 | Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | |
Matteo Scandolo | 8b2370c | 2017-02-02 17:19:07 -0800 | [diff] [blame] | 19 | <div class="row" ng-if="vm.pageList.length > 1"> |
| 20 | <div class="col-xs-12 text-center"> |
| 21 | <ul class="pagination"> |
| 22 | <li ng-click="vm.goToPage(vm.currentPage - 1)" |
| 23 | ng-class="{disabled: vm.currentPage == 0}"> |
| 24 | <a href="" aria-label="Previous"> |
| 25 | <span aria-hidden="true">«</span> |
| 26 | </a> |
| 27 | </li> |
| 28 | <li ng-repeat="i in vm.pageList" ng-class="{active: i === vm.currentPage}"> |
| 29 | <a href="" ng-click="vm.goToPage(i)">{{i + 1}}</a> |
| 30 | </li> |
| 31 | <li ng-click="vm.goToPage(vm.currentPage + 1)" |
| 32 | ng-class="{disabled: vm.currentPage == vm.pages - 1}"> |
| 33 | <a href="" aria-label="Next"> |
| 34 | <span aria-hidden="true">»</span> |
| 35 | </a> |
| 36 | </li> |
| 37 | </ul> |
| 38 | </div> |
| 39 | </div> |