Project

General

Profile

Defect #5222 » _5222_wrap_custom_fields_trunk_3764.patch

Set css properties for "text" and "long text" custom fields - Hugo Ferreira, 2010-05-31 20:43

View differences:

app/views/issues/_list.rhtml
27 27
	<tr id="issue-<%= issue.id %>" class="hascontextmenu <%= cycle('odd', 'even') %> <%= issue.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
28 28
	    <td class="checkbox"><%= check_box_tag("ids[]", issue.id, false, :id => nil) %></td>
29 29
		<td class="id"><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td>
30
        <% query.columns.each do |column| %><%= content_tag 'td', column_content(column, issue), :class => column.name %><% end %>
30
        <% query.columns.each do |column| %><%= content_tag 'td', column_content(column, issue), :class => (column.is_a?(QueryCustomFieldColumn)? column.custom_field.field_format : column.name) %><% end %>
31 31
	</tr>
32 32
	<% end -%>
33 33
	</tbody>
public/stylesheets/application.css
127 127
tr.issue td.subject, tr.issue td.category, td.assigned_to { white-space: normal; }
128 128
tr.issue td.subject { text-align: left; }
129 129
tr.issue td.done_ratio table.progress { margin-left:auto; margin-right: auto;}
130
tr.issue td.text, tr.issue td.string { text-align: left; white-space: normal; }
130 131

  
131 132
tr.issue.idnt td.subject a {background: url(../images/bullet_arrow_right.png) no-repeat 0 50%; padding-left: 16px;}
132 133
tr.issue.idnt-1 td.subject {padding-left: 0.5em;}
(2-2/2)