mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-24 09:21:12 +00:00
use "do end" instead of {} at VersionsHelper
git-svn-id: http://svn.redmine.org/redmine/trunk@19969 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
167d83890b
commit
05ff5005c5
@ -64,17 +64,17 @@ module VersionsHelper
|
||||
end
|
||||
# Sort with nil keys in last position
|
||||
sorted_keys =
|
||||
h.keys.sort {|a, b|
|
||||
h.keys.sort do |a, b|
|
||||
if a.nil?
|
||||
1
|
||||
else
|
||||
b.nil? ? -1 : a <=> b
|
||||
end
|
||||
}
|
||||
end
|
||||
counts =
|
||||
sorted_keys.collect {|k|
|
||||
sorted_keys.collect do |k|
|
||||
{:group => k, :total => h[k][0], :open => h[k][1], :closed => (h[k][0] - h[k][1])}
|
||||
}
|
||||
end
|
||||
max = counts.collect {|c| c[:total]}.max
|
||||
render :partial => 'issue_counts', :locals => {:version => version, :criteria => criteria, :counts => counts, :max => max}
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user