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
189 189
      content_tag('span',
190 190
        value.to_s(issue) {|other| link_to_issue(other, :subject => false, :tracker => false)}.html_safe,
191 191
        :class => value.css_classes_for(issue))
192
    when :hours, :spent_hours, :total_spent_hours, :estimated_hours
192
    when :hours, :estimated_hours
193 193
      format_hours(value)
194
    when :spent_hours, :total_spent_hours
195
      (value > 0) ? (link_to format_hours(value), issue_time_entries_path(issue)) : format_hours(value)
194 196
    else
195 197
      format_object(value)
196 198
    end
(2-2/6)