[ui] Fix source datasets paging
This commit is contained in:
parent
f482eb607c
commit
9fcaefe8ff
|
@ -13,7 +13,7 @@ from ckanext.harvest.lib import create_harvest_source, edit_harvest_source, \
|
|||
get_harvest_source, get_harvest_sources, \
|
||||
create_harvest_job, get_registered_harvesters_info, \
|
||||
get_harvest_object
|
||||
from ckan.lib.helpers import Page
|
||||
from ckan.lib.helpers import Page,pager_url
|
||||
import logging
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
@ -121,7 +121,8 @@ class ViewController(BaseController):
|
|||
c.page = Page(
|
||||
collection=c.source['status']['packages'],
|
||||
page=request.params.get('page', 1),
|
||||
items_per_page=20
|
||||
items_per_page=20,
|
||||
url=pager_url
|
||||
)
|
||||
|
||||
return render('source/read.html')
|
||||
|
|
Loading…
Reference in New Issue