Project

General

Profile

Patch #24649 » clickable-spent-time-in-issue-lists-v3.diff

Go MAEDA, 2017-01-09 05:19

View differences:

app/helpers/queries_helper.rb (working copy)
189 189
      content_tag('span',
190 190
        value.to_s(item) {|other| link_to_issue(other, :subject => false, :tracker => false)}.html_safe,
191 191
        :class => value.css_classes_for(item))
192
    when :hours, :spent_hours, :total_spent_hours, :estimated_hours
192
    when :hours, :estimated_hours
193 193
      format_hours(value)
194
    when :spent_hours
195
      link_to_if(value > 0, format_hours(value), project_time_entries_path(item.project, :issue_id => "#{item.id}"))
196
    when :total_spent_hours
197
      link_to_if(value > 0, format_hours(value), project_time_entries_path(item.project, :issue_id => "~#{item.id}"))
194 198
    else
195 199
      format_object(value)
196 200
    end
(3-3/6)