Revision 630061d2
Added by Michael Moll almost 6 years ago
app/helpers/reports_helper.rb | ||
---|---|---|
choices += (1..7).map{|i| OpenStruct.new :name => n_("%s day ago", "%s days ago", i) % i, :value => i.days.ago }
|
||
choices += (1..3).map{|i| OpenStruct.new :name => n_("%s week ago", "%s weeks ago", i) % i, :value => i.week.ago }
|
||
choices += (1..3).map{|i| OpenStruct.new :name => n_("%s month ago", "%s months ago", i) % i, :value => i.month.ago }
|
||
choices += [OpenStruct.new(:name => _("All Reports"), :value => Report.first(:select => "created_at").created_at)]
|
||
choices += [OpenStruct.new(:name => _("All Reports"), :value => Report.first(:select => "created_at").created_at)]
|
||
builder.collection_select :reported_at_gt, choices, :value, :name, {:include_blank => _("Select a period")}
|
||
end
|
||
|
Also available in: Unified diff
Fixes #19775 - Fix Layout/ExtraSpacing cop