rosa-build/app/views/shared/_angularjs_will_paginate.ht...

14 lines
809 B
Plaintext
Raw Normal View History

#will_paginate{'ng-show' => 'pages'}
.pagination
%div{'ng-class' => "{'disabled': !page.active}", 'ng-repeat' => 'page in pages', 'ng-switch' => 'page.type'}
2014-01-21 04:51:49 +00:00
%a{'ng-switch-when' => 'previous_page', 'ng-click' => 'goToPage(page.number)', href: ''}
= t('datatables.previous_label')
2014-01-21 04:51:49 +00:00
%a{'ng-switch-when' => 'first', href: ''}
{{page.number}}
2014-01-21 04:51:49 +00:00
%a{'ng-switch-when' => 'page', 'ng-click' => 'goToPage(page.number)', href: ''}
{{page.number}}
2014-01-21 04:51:49 +00:00
%a{'ng-switch-when' => 'more', 'ng-click' => 'goToPage(page.number)', href: ''} …
%a{'ng-switch-when' => 'last', 'ng-click' => 'goToPage(page.number)', href: ''}
{{page.number}}
2014-01-21 04:51:49 +00:00
%a{'ng-switch-when' => 'next_page', 'ng-click' => 'goToPage(page.number)', href: ''}
= t('datatables.next_label')