summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-08-09 15:57:20 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-08-09 15:57:20 +0000
commit05ff5005c54ed293a5feff2ac880e6a85b5d7c4b (patch)
treef4f4aca778c1a41c235d11bcc0e30a4faa6e7cee
parent167d83890b2d29022c59c620a646db1af8062260 (diff)
downloadredmine-05ff5005c54ed293a5feff2ac880e6a85b5d7c4b.tar.gz
redmine-05ff5005c54ed293a5feff2ac880e6a85b5d7c4b.zip
use "do end" instead of {} at VersionsHelper
git-svn-id: http://svn.redmine.org/redmine/trunk@19969 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/helpers/versions_helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/helpers/versions_helper.rb b/app/helpers/versions_helper.rb
index d7ae82eeb..6bdfae769 100644
--- a/app/helpers/versions_helper.rb
+++ b/app/helpers/versions_helper.rb
@@ -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