diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-15 16:29:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-15 16:29:19 +0000 |
commit | a12219034d06cfe1ef54b3445fc79038e4fa2e9f (patch) | |
tree | d29e2fb638aed2caabc5154b52eca10caef49a52 /app/helpers/queries_helper.rb | |
parent | dd491c305c076a94e7aaef78f7142122839b37cc (diff) | |
download | redmine-a12219034d06cfe1ef54b3445fc79038e4fa2e9f.tar.gz redmine-a12219034d06cfe1ef54b3445fc79038e4fa2e9f.zip |
Make Spent time clickable in issue lists (#24649).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@16204 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/queries_helper.rb')
-rw-r--r-- | app/helpers/queries_helper.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb index 570ccb368..c1c46f483 100644 --- a/app/helpers/queries_helper.rb +++ b/app/helpers/queries_helper.rb @@ -191,8 +191,12 @@ module QueriesHelper content_tag('span', value.to_s(item) {|other| link_to_issue(other, :subject => false, :tracker => false)}.html_safe, :class => value.css_classes_for(item)) - when :hours, :spent_hours, :total_spent_hours, :estimated_hours + when :hours, :estimated_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}")) + when :total_spent_hours + link_to_if(value > 0, format_hours(value), project_time_entries_path(item.project, :issue_id => "~#{item.id}")) else format_object(value) end |