Patch #13696 » RM_13696_Projects_admin_show_issues_count_RM_V1.2.1.diff
app/views/admin/projects.rhtml (copie de travail) | ||
---|---|---|
2 | 2 |
<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %> |
3 | 3 |
</div> |
4 | 4 | |
5 |
<h2><%=l(:label_project_plural)%></h2> |
|
5 |
<h2><%=l(:label_project_plural)%> (<%= @projects.size %>)</h2>
|
|
6 | 6 | |
7 | 7 |
<% form_tag({}, :method => :get) do %> |
8 | 8 |
<fieldset><legend><%= l(:label_filter_plural) %></legend> |
... | ... | |
21 | 21 |
<thead><tr> |
22 | 22 |
<th><%=l(:label_project)%></th> |
23 | 23 |
<th><%=l(:field_is_public)%></th> |
24 |
<th><%=l(:field_issues)%></th> |
|
24 | 25 |
<th><%=l(:field_created_on)%></th> |
25 | 26 |
<th></th> |
26 | 27 |
</tr></thead> |
... | ... | |
29 | 30 |
<tr class="<%= cycle("odd", "even") %> <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> |
30 | 31 |
<td class="name"><span><%= link_to_project(project, {:action => 'settings'}, :title => project.short_description) %></span></td> |
31 | 32 |
<td align="center"><%= checked_image project.is_public? %></td> |
33 |
<td align="center"><%= Issue.count(:conditions => "project_id = #{project.id}") %></td> |
|
32 | 34 |
<td align="center"><%= format_date(project.created_on) %></td> |
33 | 35 |
<td class="buttons"> |
34 | 36 |
<%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-lock') if project.active? %> |