Retrospring/app/views/shared/_cursored_pagination_dummy....

12 lines
449 B
Plaintext
Raw Normal View History

-# this renders a pagination html to keep compatibility with the current pagination js
2020-05-10 01:02:04 -07:00
it _should_ be replaced with something else entirely later on.
- permitted_params ||= []
#pagination
%ul.pagination
2020-05-10 01:02:04 -07:00
%li.next{ class: more_data_available ? nil : 'disabled' }
- if more_data_available
2020-05-10 01:02:04 -07:00
%a{ rel: :next, href: url_for(params.permit(*permitted_params).merge(last_id: last_id)) }
Next page
- else
Next page