diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2024-05-01 07:49:29 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2024-05-01 07:49:29 +0000 |
commit | 6fa12a95abaff2e5422588a69b8abf4f2ba28d74 (patch) | |
tree | f71618b87f919b961b0857a23851accd0c609eb1 /app/helpers | |
parent | 61c7d539dccc3bec3da4d365443fb780bffd8ef0 (diff) | |
download | redmine-6fa12a95abaff2e5422588a69b8abf4f2ba28d74.tar.gz redmine-6fa12a95abaff2e5422588a69b8abf4f2ba28d74.zip |
Adds estimated remaining hours issue query column calculated based on estimated time and done ratio (#37862).
Patch by Jens Krämer (@jkraemer).
git-svn-id: https://svn.redmine.org/redmine/trunk@22800 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/queries_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb index b9234bd1f..160473ae8 100644 --- a/app/helpers/queries_helper.rb +++ b/app/helpers/queries_helper.rb @@ -190,7 +190,7 @@ module QueriesHelper def total_tag(column, value) label = content_tag('span', "#{column.caption}:") value = - if [:hours, :spent_hours, :total_spent_hours, :estimated_hours, :total_estimated_hours].include? column.name + if [:hours, :spent_hours, :total_spent_hours, :estimated_hours, :total_estimated_hours, :estimated_remaining_hours].include? column.name format_hours(value) else format_object(value) @@ -269,7 +269,7 @@ module QueriesHelper 'span', value.to_s(item) {|other| link_to_issue(other, :subject => false, :tracker => false)}.html_safe, :class => value.css_classes_for(item)) - when :hours, :estimated_hours, :total_estimated_hours + when :hours, :estimated_hours, :total_estimated_hours, :estimated_remaining_hours format_hours(value) when :spent_hours link_to_if(value > 0, format_hours(value), project_time_entries_path(item.project, :issue_id => "#{item.id}")) |