Project

General

Profile

Patch #684 ยป view_journal_count.diff

jinwoo lee, 2008-02-18 09:27

View differences:

app/views/issues/_list.rhtml (working copy)
13 13
	<tr id="issue-<%= issue.id %>" class="issue hascontextmenu <%= cycle('odd', 'even') %> <%= "status-#{issue.status.position} priority-#{issue.priority.position}" %>">
14 14
	    <td class="checkbox"><%= check_box_tag("ids[]", issue.id, false) %></td>
15 15
		<td><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td>
16
        <% query.columns.each do |column| %><%= content_tag 'td', column_content(column, issue), :class => column.name %><% end %>
16
        <% query.columns.each do |column| %><%= content_tag 'td', column.name.to_s == 'subject' && issue.journals.size > 0 ? column_content(column, issue)+' ('+issue.journals.size.to_s+')' : column_content(column, issue), :class => column.name %><% end %>
17 17
	</tr>
18 18
	<% end -%>
19 19
	</tbody>
    (1-1/1)