Skip to content

Commit

Permalink
Make Spent time clickable in issue lists (#24649).
Browse files Browse the repository at this point in the history
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@16204 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
jplang committed Jan 15, 2017
1 parent dd491c3 commit a122190
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/helpers/queries_helper.rb
Expand Up @@ -191,8 +191,12 @@ def column_value(column, item, value)
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
Expand Down

0 comments on commit a122190

Please sign in to comment.