Patch #18326 » issue_show_revisions_3_0.patch
app/helpers/application_helper.rb | ||
---|---|---|
204 | 204 |
else |
205 | 205 |
object.value.to_s |
206 | 206 |
end |
207 |
when 'Changeset' |
|
208 |
link_to_revision(object,object.repository) |
|
207 | 209 |
else |
208 | 210 |
html ? h(object) : object.to_s |
209 | 211 |
end |
app/helpers/queries_helper.rb | ||
---|---|---|
107 | 107 |
value = column.value_object(issue) |
108 | 108 |
if value.is_a?(Array) |
109 | 109 |
value.collect {|v| column_value(column, issue, v)}.compact.join(', ').html_safe |
110 |
elsif value.is_a?(Changeset::ActiveRecord::Associations::CollectionProxy) |
|
111 |
value.to_a.each_slice(3).map do |slice| |
|
112 |
slice.map {|v| column_value(column, issue, v)}.compact.join(', ').html_safe |
|
113 |
end.join(',<br>') |
|
110 | 114 |
else |
111 | 115 |
column_value(column, issue, value) |
112 | 116 |
end |
... | ... | |
222 | 226 |
@query |
223 | 227 |
end |
224 | 228 |
end |
229 | ||
225 | 230 |
end |
app/models/issue_query.rb | ||
---|---|---|
39 | 39 |
QueryColumn.new(:created_on, :sortable => "#{Issue.table_name}.created_on", :default_order => 'desc'), |
40 | 40 |
QueryColumn.new(:closed_on, :sortable => "#{Issue.table_name}.closed_on", :default_order => 'desc'), |
41 | 41 |
QueryColumn.new(:relations, :caption => :label_related_issues), |
42 |
QueryColumn.new(:description, :inline => false) |
|
42 |
QueryColumn.new(:description, :inline => false), |
|
43 |
QueryColumn.new(:changesets, :caption => :label_associated_revisions) |
|
43 | 44 |
] |
44 | 45 |
scope :visible, lambda {|*args| |