OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/public/templates/components/table_pagination.html

36 lines
1.2 KiB

<p class="pagination">
<a ng-show="paginationOptions.page != 1"
ng-click="showPage(paginationOptions.page - 1)"
class="previous_page"
rel="prev start"
href="">Previous
</a>
<span ng-if="pageNumbers.length > 1" ng-repeat="pageNumber in pageNumbers">
<em ng-if="pageNumber == paginationOptions.page" class="current">{{ pageNumber }}</em>
<a ng-if="pageNumber != paginationOptions.page"
ng-click="showPage(pageNumber)"
rel="next"
href="">{{ pageNumber }}</a>
</span>
<a ng-show="paginationOptions.page != pageNumbers.length"
ng-click="showPage(paginationOptions.page + 1)"
class="next_page"
rel="next"
href="">Next
</a>
<span class="range">{{ currentRange }}</span>
<span class="per_page_options">
Per page:
<span ng-repeat="perPageOption in perPageOptions">
<span ng-if="perPageOption != paginationOptions.perPage">
<a href="" ng-click="selectPerPage(perPageOption)">{{ perPageOption }}</a>
</span>
<span ng-if="perPageOption == paginationOptions.perPage"
ng-click="selectPerPage(perPageOption)">{{ perPageOption }}</span>
</span>
</span>
</p>