Project

General

Profile

Feature #8152 ยป issues_helper.rb.patch

Alexei Kornienko, 2012-01-07 16:07

View differences:

app/helpers/issues_helper.rb (working copy)
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"
case value.custom_field.field_format
when "version"
custom_field_value = h(link_to_version(Version.find_by_id(value.value)))
when "user"
custom_field_value = h(link_to_user(User.find_by_id(value.value)))
else
custom_field_value = simple_format_without_paragraph(h(show_value(value)))
end
s << "\t<th>#{ h(value.custom_field.name) }:</th><td>#{ custom_field_value }</td>\n"
n += 1
end
s << "</tr>\n"
    (1-1/1)