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
#ansi_to_html, #base_url, #download_url, #expand_pin_packages, #expand_url, #file_link, #history_url, #icon, #javascript_tag, #log_links, #log_url, #notice, notice, #package_url, #pkg_history_url, #static_url, static_url, #stylesheet_tag, #title_test_trigger_pin
Methods inherited from App
#allow_browsing?, #authenticate!, #forbidden, #get_page_params, get_page_range, #get_page_range, #logged_in?, #logging_in?, #pagination_params, #refresh!
Instance Method Details
#filter_and_paginate(jobs) ⇒ Object
20 21 22 23 24 |
# File 'lib/debci/status.rb', line 20 def filter_and_paginate(jobs) jobs = jobs.joins(:package).where(packages: { removed: false }) query = params.select { |k| [:arch, :suite].include?(k.to_sym) } get_page_params(jobs.where(query), params[:page], PER_PAGE) end |