Project

General

Profile

Patch #24649 » Clickable-spent-time-in-issue-lists-Redmine-trunk-2016-12-14.patch

Olivier Houdas, 2017-01-02 10:16

View differences:

app/helpers/queries_helper.rb Wed Dec 14 12:06:30 2016 +0000 → app/helpers/queries_helper.rb Mon Jan 02 09:58:42 2017 +0100
content_tag('span',
value.to_s(issue) {|other| link_to_issue(other, :subject => false, :tracker => false)}.html_safe,
:class => value.css_classes_for(issue))
when :hours, :spent_hours, :total_spent_hours, :estimated_hours
when :hours, :estimated_hours
format_hours(value)
when :spent_hours, :total_spent_hours
(value > 0) ? (link_to format_hours(value), issue_time_entries_path(issue)) : format_hours(value)
else
format_object(value)
end
(2-2/6)