| 244 |
244 |
issue_fields_rows do |rows|
|
| 245 |
245 |
values.each_with_index do |value, i|
|
| 246 |
246 |
css = "cf_#{value.custom_field.id}"
|
| 247 |
|
attr_value = show_value(value)
|
| 248 |
|
if value.custom_field.text_formatting == 'full'
|
| 249 |
|
attr_value = content_tag('div', attr_value, class: 'wiki')
|
| 250 |
|
end
|
| 251 |
247 |
m = (i < half ? :left : :right)
|
| 252 |
|
rows.send m, custom_field_name_tag(value.custom_field), attr_value, :class => css
|
|
248 |
rows.send m, custom_field_name_tag(value.custom_field), custom_field_value_tag(value), :class => css
|
| 253 |
249 |
end
|
| 254 |
250 |
end
|
| 255 |
251 |
end
|
| ... | ... | |
| 260 |
256 |
|
| 261 |
257 |
s = ''.html_safe
|
| 262 |
258 |
values.each_with_index do |value, i|
|
| 263 |
|
attr_value = show_value(value)
|
| 264 |
|
next if attr_value.blank?
|
| 265 |
|
|
| 266 |
|
if value.custom_field.text_formatting == 'full'
|
| 267 |
|
attr_value = content_tag('div', attr_value, class: 'wiki')
|
| 268 |
|
end
|
|
259 |
attr_value_tag = custom_field_value_tag(value)
|
|
260 |
next if attr_value_tag.blank?
|
| 269 |
261 |
|
| 270 |
262 |
content =
|
| 271 |
263 |
content_tag('hr') +
|
| 272 |
264 |
content_tag('p', content_tag('strong', custom_field_name_tag(value.custom_field) )) +
|
| 273 |
|
content_tag('div', attr_value, class: 'value')
|
|
265 |
content_tag('div', attr_value_tag, class: 'value')
|
| 274 |
266 |
s << content_tag('div', content, class: "cf_#{value.custom_field.id} attribute")
|
| 275 |
267 |
end
|
| 276 |
268 |
s
|