diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 73ac4be..beb36b5 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -33,6 +33,25 @@ module IssuesHelper "#{@cached_label_priority}: #{issue.priority.name}" end + def render_custom_fields_rows(issue) + return if issue.custom_field_values.empty? + ordered_values = [] + half = (issue.custom_field_values.size / 2.0).ceil + half.times do |i| + ordered_values << issue.custom_field_values[i] + ordered_values << issue.custom_field_values[i + half] + end + s = "
<%= custom_field_tag_with_label :issue, value %>
<% if i == split_on -%> diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml index 776aa33..a7d5692 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -45,17 +45,7 @@