Project

General

Profile

« Previous | Next » 

Revision f4459c11

Added by David Davis about 8 years ago

Refs #3809 - Turning on some rubocop cops

View differences:

app/helpers/taxonomy_helper.rb
step=1
content = nil
args.each do |arg|
step_content = content_tag(:li,(content_tag(:span,step,:class=>"badge" +" #{'badge-inverse' if step==current}")+arg).html_safe, :class=>"#{'active' if step==current}")
step_content = content_tag(:li,(content_tag(:span,step,:class=>"badge" +" #{'badge-inverse' if step==current}")+arg).html_safe, :class=>('active' if step==current).to_s)
step == 1 ? content = step_content : content += step_content
step += 1
end
......
:domains => { :all => _("All domains"), :select => _("Select domains") },
:realms => { :all => _("All realms"), :select => _("Select realms") },
:environments => { :all => _("All environments"), :select => _("Select environments") },
:hostgroups => { :all => _("All host groups"), :select => _("Select host groups") },
:hostgroups => { :all => _("All host groups"), :select => _("Select host groups") }
}
labels[resource][verb]
end

Also available in: Unified diff