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)
104 104
    n = 0
105 105
    ordered_values.compact.each do |value|
106 106
      s << "</tr>\n<tr>\n" if n > 0 && (n % 2) == 0
107
      s << "\t<th>#{ h(value.custom_field.name) }:</th><td>#{ simple_format_without_paragraph(h(show_value(value))) }</td>\n"
107
      
108
      case value.custom_field.field_format
109
      when "version"
110
        custom_field_value = h(link_to_version(Version.find_by_id(value.value)))
111
      when "user"
112
        custom_field_value = h(link_to_user(User.find_by_id(value.value)))
113
      else
114
        custom_field_value = simple_format_without_paragraph(h(show_value(value)))
115
      end
116
      
117
      s << "\t<th>#{ h(value.custom_field.name) }:</th><td>#{ custom_field_value }</td>\n"
118
      
108 119
      n += 1
109 120
    end
110 121
    s << "</tr>\n"
    (1-1/1)