Project

General

Profile

Feature #8492 ยป customfieldlink.patch

Ilia S, 2011-06-01 19:19

View differences:

app/helpers/issues_helper.rb
102 102
    n = 0
103 103
    ordered_values.compact.each do |value|
104 104
      s << "</tr>\n<tr>\n" if n > 0 && (n % 2) == 0
105
      s << "\t<th>#{ h(value.custom_field.name) }:</th><td>#{ simple_format_without_paragraph(h(show_value(value))) }</td>\n"
105
      if value.custom_field.field_format == "version"  
106
       s << "\t<th>#{ h(value.custom_field.name) }:</th><td>#{ h(link_to_version(Version.find_by_id(value.value))) }</td>\n"
107
      else 
108
       s << "\t<th>#{ h(value.custom_field.name) }:</th><td>#{ simple_format_without_paragraph(h(show_value(value))) }</td>\n"
109
      end
106 110
      n += 1
107 111
    end
108 112
    s << "</tr>\n"
109 113

  
110 114

  
    (1-1/1)