paginate jobs page

(only views/jobs/jobs.html, which is the drill-down page, not the dashboard view)
This commit is contained in:
Leo Hemsted
2016-10-10 14:50:59 +01:00
parent ebb590bc5d
commit dbe4400441
4 changed files with 35 additions and 29 deletions

View File

@@ -38,8 +38,8 @@ class JobApiClient(BaseAPIClient):
return job
def get_jobs(self, service_id, limit_days=None, statuses=None):
params = {}
def get_jobs(self, service_id, limit_days=None, statuses=None, page=1):
params = {'page': page}
if limit_days is not None:
params['limit_days'] = limit_days
if statuses is not None: