summaryrefslogtreecommitdiffstats
path: root/app/helpers/settings_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-05-25 10:03:42 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-05-25 10:03:42 +0000
commitb22105f34a8e699c9488c755d16fd7b21adcec4f (patch)
tree35e7ea0d1f42dfcec19f7816f59309e0990b6848 /app/helpers/settings_helper.rb
parent0ad09e3aef86d4e6c6784d5d906bfa6d1767757f (diff)
downloadredmine-b22105f34a8e699c9488c755d16fd7b21adcec4f.tar.gz
redmine-b22105f34a8e699c9488c755d16fd7b21adcec4f.zip
Adds a setting to control done ratio on parent tasks (#5490).
git-svn-id: http://svn.redmine.org/redmine/trunk@14270 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/settings_helper.rb')
-rw-r--r--app/helpers/settings_helper.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/settings_helper.rb b/app/helpers/settings_helper.rb
index 0dcdbb040..5c747f0d2 100644
--- a/app/helpers/settings_helper.rb
+++ b/app/helpers/settings_helper.rb
@@ -149,6 +149,15 @@ module SettingsHelper
options.map {|label, value| [l(label), value.to_s]}
end
+ def parent_issue_done_ratio_options
+ options = [
+ [:label_parent_task_attributes_derived, 'derived'],
+ [:label_parent_task_attributes_independent, 'independent']
+ ]
+
+ options.map {|label, value| [l(label), value.to_s]}
+ end
+
# Returns the options for the date_format setting
def date_format_setting_options(locale)
Setting::DATE_FORMATS.map do |f|