Project

General

Profile

Patch #13696 » RM_13696_Projects_admin_show_issues_count_RM_V1.2.1.diff

Jérôme BATAILLE, 2013-04-05 16:52

View differences:

app/views/admin/projects.rhtml (copie de travail)
<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %>
</div>
<h2><%=l(:label_project_plural)%></h2>
<h2><%=l(:label_project_plural)%> (<%= @projects.size %>)</h2>
<% form_tag({}, :method => :get) do %>
<fieldset><legend><%= l(:label_filter_plural) %></legend>
......
<thead><tr>
<th><%=l(:label_project)%></th>
<th><%=l(:field_is_public)%></th>
<th><%=l(:field_issues)%></th>
<th><%=l(:field_created_on)%></th>
<th></th>
</tr></thead>
......
<tr class="<%= cycle("odd", "even") %> <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
<td class="name"><span><%= link_to_project(project, {:action => 'settings'}, :title => project.short_description) %></span></td>
<td align="center"><%= checked_image project.is_public? %></td>
<td align="center"><%= Issue.count(:conditions => "project_id = #{project.id}") %></td>
<td align="center"><%= format_date(project.created_on) %></td>
<td class="buttons">
<%= 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? %>
(1-1/5)