Class: Debci::Status

Inherits:
App
  • Object
show all
Includes:
HTMLHelpers
Defined in:
lib/debci/status.rb

Constant Summary

Constants included from HTMLHelpers

HTMLHelpers::ICONS

Instance Method Summary collapse

Methods included from HTMLHelpers

#expand_pin_packages, #expand_url, #filesize, #history_url, #icon, #package_url, #title_test_trigger_pin

Methods inherited from App

#get_page_params, get_page_range, #get_page_range, #pagination_params

Instance Method Details

#filter_and_paginate(jobs) ⇒ Object



15
16
17
18
# File 'lib/debci/status.rb', line 15

def filter_and_paginate(jobs)
  query = params.filter { |k| [:arch, :suite].include?(k.to_sym) }
  get_page_params(jobs.where(query), params[:page], 200)
end