custom_field_css_classes_on_issues_show.diff

Ingo Linde, 2012-06-29 22:17

Download (728 Bytes)

View differences:

app/helpers/issues_helper.rb (Arbeitskopie)
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
      s << "\t<th class=\"custom-field-id-#{value.custom_field.id}\">#{ h(value.custom_field.name) }:</th><td class=\"custom-field-id-#{value.custom_field.id}\">#{ simple_format_without_paragraph(h(show_value(value))) }</td>\n"
108 108
      n += 1
109 109
    end
110 110
    s << "</tr>\n"