Class: Debci::Status
- Includes:
- HTMLHelpers
- Defined in:
- lib/debci/status.rb
Constant Summary collapse
- PER_PAGE =
200
Constants included from HTMLHelpers
Instance Method Summary collapse
Methods included from HTMLHelpers
#expand_pin_packages, #expand_url, #file_link, #history_url, #icon, #package_url, #title_test_trigger_pin
Methods inherited from App
#get_page_params, get_page_range, #get_page_range, #pagination_params, #refresh!
Instance Method Details
#filter_and_paginate(jobs) ⇒ Object
17 18 19 20 |
# File 'lib/debci/status.rb', line 17 def filter_and_paginate(jobs) query = params.select { |k| [:arch, :suite].include?(k.to_sym) } get_page_params(jobs.where(query), params[:page], PER_PAGE) end |