app/helpers/projects_helper.rb
# Render all the status_choosers in the given minor section.
# This takes a rediculous number of parameters, because we have to
# select the correct minor section & then pass the information the
# status_chooser needs (which also needs a rediculous number).
# rubocop:disable Metrics/MethodLength,Metrics/AbcSize
# rubocop:disable Metrics/ParameterLists
Render all the status_choosers in the given minor section.
This takes a rediculous number of parameters, because we have to
select the correct minor section & then pass the information the
status_chooser needs (which also needs a rediculous number).
Render all the status_choosers in the given minor section . This takes a rediculous number of parameters because we have to select the correct minor section & then pass the information the status_chooser needs ( which also needs a rediculous number ) .
def render_minor_status(
    criteria_level, major, minor, f, project, is_disabled, wrapped = true
  )
    minor_criteria = FullCriteriaHash[criteria_level][major][minor].keys
    raise NameError if minor_criteria.empty? 
    results = ActionView::OutputBuffer.new
    results << minor_header_html(minor) if wrapped
    minor_criteria.each do |criterion|
      results << render_status(
        criterion, f, project, criteria_level, is_disabled,
        criterion == minor_criteria.last
      )
    end
    results << safe_join(['</li>'.html_safe]) if wrapped
    results
  end
def render_minor_status ( criteria_level , major , minor , f , project , is_disabled , wrapped = true ) minor_criteria = FullCriteriaHash [ criteria_level ] [ major ] [ minor ] . keys raise NameError if minor_criteria . empty? results = ActionView :: OutputBuffer . new results << minor_header_html ( minor ) if wrapped minor_criteria . each do | criterion | results << render_status ( criterion , f , project , criteria_level , is_disabled , criterion == minor_criteria . last ) end results << safe_join ( [ '</li>' . html_safe ] ) if wrapped results end
Render all the status_choosers in the given minor section.
Render all the status_choosers in the given minor section .
# Should always be true # rubocop:disable Rails/OutputSafety # rubocop:enable Rails/OutputSafety
criteria_level
<not_specific>
major
<not_specific>
minor
<not_specific>
f
<not_specific>
project
<not_specific>
is_disabled
<not_specific>
wrapped
<not_specific>