##// END OF EJS Templates
Make Spent time clickable in issue lists (#24649)....
Jean-Philippe Lang -
r15822:a12219034d06
parent child
Show More
@@ -191,8 +191,12 module QueriesHelper
191 content_tag('span',
191 content_tag('span',
192 value.to_s(item) {|other| link_to_issue(other, :subject => false, :tracker => false)}.html_safe,
192 value.to_s(item) {|other| link_to_issue(other, :subject => false, :tracker => false)}.html_safe,
193 :class => value.css_classes_for(item))
193 :class => value.css_classes_for(item))
194 when :hours, :spent_hours, :total_spent_hours, :estimated_hours
194 when :hours, :estimated_hours
195 format_hours(value)
195 format_hours(value)
196 when :spent_hours
197 link_to_if(value > 0, format_hours(value), project_time_entries_path(item.project, :issue_id => "#{item.id}"))
198 when :total_spent_hours
199 link_to_if(value > 0, format_hours(value), project_time_entries_path(item.project, :issue_id => "~#{item.id}"))
196 else
200 else
197 format_object(value)
201 format_object(value)
198 end
202 end
General Comments 0
You need to be logged in to leave comments. Login now