mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
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
This commit is contained in:
parent
dd491c305c
commit
a12219034d
@ -191,8 +191,12 @@ module QueriesHelper
|
|||||||
content_tag('span',
|
content_tag('span',
|
||||||
value.to_s(item) {|other| link_to_issue(other, :subject => false, :tracker => false)}.html_safe,
|
value.to_s(item) {|other| link_to_issue(other, :subject => false, :tracker => false)}.html_safe,
|
||||||
:class => value.css_classes_for(item))
|
:class => value.css_classes_for(item))
|
||||||
when :hours, :spent_hours, :total_spent_hours, :estimated_hours
|
when :hours, :estimated_hours
|
||||||
format_hours(value)
|
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
|
else
|
||||||
format_object(value)
|
format_object(value)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user