2020-04-20 14:03:57 -07:00
|
|
|
-# 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.
|
2020-04-20 14:03:57 -07:00
|
|
|
- permitted_params ||= []
|
|
|
|
#pagination
|
|
|
|
%ul.pagination
|
2020-05-10 13:27:39 -07:00
|
|
|
%li.next{ class: more_data_available ? nil : :disabled }
|
2020-04-20 14:03:57 -07:00
|
|
|
- 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)) }
|
2020-04-20 14:03:57 -07:00
|
|
|
Next page
|
|
|
|
- else
|
|
|
|
Next page
|