Feature #26081 » 26081.patch.txt
| 1 | 
      Index: app/models/query.rb  | 
  
|---|---|
| 2 | 
      ===================================================================  | 
  
| 3 | 
      --- app/models/query.rb (revision 16584)  | 
  
| 4 | 
      +++ app/models/query.rb (working copy)  | 
  
| 5 | 
      @@ -82,6 +82,9 @@  | 
  
| 6 | 
      self.groupable = custom_field.group_statement || false  | 
  
| 7 | 
      self.totalable = custom_field.totalable?  | 
  
| 8 | 
      @inline = true  | 
  
| 9 | 
      + if custom_field.field_format == "text" then  | 
  
| 10 | 
      + @inline = false  | 
  
| 11 | 
      + end  | 
  
| 12 | 
      @cf = custom_field  | 
  
| 13 | 
      end  | 
  
| 14 | 
       | 
  
| 15 | 
      @@ -114,7 +117,7 @@  | 
  
| 16 | 
      end  | 
  
| 17 | 
       | 
  
| 18 | 
      def css_classes  | 
  
| 19 | 
      -    @css_classes ||= "#{name} #{@cf.field_format}"
     | 
  
| 20 | 
      +    @css_classes ||= "#{name} #{@cf.field_format}" + (@inline?"":" description")
     | 
  
| 21 | 
      end  | 
  
| 22 | 
      end  | 
  
| 23 | 
       | 
  
| 24 | 
      Index: app/views/issues/_list.html.erb  | 
  
| 25 | 
      ===================================================================  | 
  
| 26 | 
      --- app/views/issues/_list.html.erb (revision 16584)  | 
  
| 27 | 
      +++ app/views/issues/_list.html.erb (working copy)  | 
  
| 28 | 
      @@ -33,7 +33,7 @@  | 
  
| 29 | 
      <% @query.block_columns.each do |column|  | 
  
| 30 | 
      if (text = column_content(column, issue)) && text.present? -%>  | 
  
| 31 | 
      <tr class="<%= current_cycle %>">  | 
  
| 32 | 
      - <td colspan="<%= @query.inline_columns.size + 1 %>" class="<%= column.css_classes %>"><%= text %></td>  | 
  
| 33 | 
      + <td colspan="<%= @query.inline_columns.size + 1 %>" class="<%= column.css_classes %>"><h3><%=column.caption%></h3><%= text %></td>  | 
  
| 34 | 
      </tr>  | 
  
| 35 | 
      <% end -%>  | 
  
| 36 | 
      <% end -%>  |