rosa-build/app/views/shared/_angularjs_paginate.html.slim

26 lines
1.1 KiB
Plaintext
Raw Normal View History

2014-10-30 14:19:55 +00:00
/ Add to controller something like:
/ $scope.goToPage = (number) ->
/ $location.search('page', number)
2016-05-22 13:25:00 +01:00
- if rd_widget_footer
rd-widget-footer ng-show = "#{total_items} > #{per_page}"
uib-pagination[ boundary-links = 'true'
total-items = total_items
ng-model = page
previous-text = "" next-text = ""
first-text = "«" last-text = "»"
items-per-page = per_page
max-size = 5
rotate = 'false'
ng-change = select_page ]
- else
uib-pagination[ boundary-links = 'true'
total-items = total_items
ng-model = page
previous-text = "" next-text = ""
first-text = "«" last-text = "»"
items-per-page = per_page
max-size = 5
rotate = 'false'
ng-show = "#{total_items} > #{per_page}"
ng-change = select_page ]