Feature #8492 ยป customfieldlink.patch
| app/helpers/issues_helper.rb | ||
|---|---|---|
|
n = 0
|
||
|
ordered_values.compact.each do |value|
|
||
|
s << "</tr>\n<tr>\n" if n > 0 && (n % 2) == 0
|
||
|
s << "\t<th>#{ h(value.custom_field.name) }:</th><td>#{ simple_format_without_paragraph(h(show_value(value))) }</td>\n"
|
||
|
if value.custom_field.field_format == "version"
|
||
|
s << "\t<th>#{ h(value.custom_field.name) }:</th><td>#{ h(link_to_version(Version.find_by_id(value.value))) }</td>\n"
|
||
|
else
|
||
|
s << "\t<th>#{ h(value.custom_field.name) }:</th><td>#{ simple_format_without_paragraph(h(show_value(value))) }</td>\n"
|
||
|
end
|
||
|
n += 1
|
||
|
end
|
||
|
s << "</tr>\n"
|
||