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

26 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/ Add to controller something like:
/ $scope.goToPage = (number) ->
/ $location.search('page', number)
- 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 ]