<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %>
<% ############################################################ # Smile specific : #156114 Projects admin, show issues count # TODO jebat to put in an index overriden controller method if params[:parent].present? parent_project = Project.find_by_name(params[:parent]) if parent_project.present? @projects = @projects.select{ |p| p.ancestors.include?(parent_project) } else @projects = [] end end display_counts = params[:parent].present? || params[:name].present? # END -- Smile specific : #156114 Projects admin, show issues count ################################################################### # Smile specific : #156114 Projects admin, show issues count -%> <%= title "#{l(:label_project_plural)} (#{@projects.size})" %> <%= form_tag({}, :method => :get) do %>
<%= l(:label_filter_plural) %> <%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %> <%= text_field_tag 'name', params[:name], :size => 30 %> <% # Smile specific : #156114 Projects admin, show issues count -%>
<%= text_field_tag 'parent', params[:parent], :size => 60 %> <% # END -- Smile specific : #156114 Projects admin, show issues count -%> <%= submit_tag l(:button_apply), :class => "small", :name => nil %> <%= link_to l(:button_clear), {:controller => 'admin', :action => 'projects'}, :class => 'icon icon-reload' %>
<% end %>  
<% ########################################################## # Smile specific #156114 Projects admin, show issues count # Smile specific #416615 Projects admin, show parent project if projects filtered if display_counts then -%> <% end # END -- Smile specific #156114 Projects admin, show issues count ################################################################# -%> <% project_tree(@projects) do |project, level| %> <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> <% ########################################################## # Smile specific #156114 Projects admin, show issues count if display_counts then p_children_count = project.descendants.count label_children_count = p_children_count.to_s if p_children_count > 0 label_children_count = "#{label_children_count}".html_safe end -%> <% end # END -- Smile specific : #156114 Projects admin, show issues count ################################################################### -%> <% end %>
<%=l(:label_project)%> <%=l(:field_identifier)%> <%=l(:field_is_public)%><%=l(:label_issue_plural) %> (<%= l(:label_open_issues_plural) %>)
<%= l(:label_member_plural) %> / <%= l(:label_subproject_plural) %>
<%=l(:field_parent) %><%=l(:field_created_on)%>
<%= link_to_project_settings(project, {}, :title => project.short_description) %> <%= project.identifier %> <%= checked_image project.is_public? %><%= Issue.where(:project_id => project.id).count %> (<%= Issue.open.where(:project_id => project.id).count %>)
<%= project.members.count %> / <%= label_children_count %>
<% # Smile specific #416615 Projects admin, show parent project if projects filtered if project.parent -%> <%= link_to_project_settings(project.parent, {}, :title => project.parent.short_description) %> <% end -%> <%= format_date(project.created_on) %> <% # Smile specific #416800 Admin projets : archiver / d├ęsarchiver ne reste pas sur les filtres courants # Smile specific : params added name, parent -%> <%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status], :name => params[:name], :parent => params[:parent] }, :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock') unless project.archived? %> <% # Smile specific #416800 Admin projets : archiver / d├ęsarchiver ne reste pas sur les filtres courants # Smile specific : params added name, parent -%> <%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project, :status => params[:status], :name => params[:name], :parent => params[:parent] }, :method => :post, :class => 'icon icon-unlock') if project.archived? && (project.parent.nil? || !project.parent.archived?) %> <%= link_to(l(:button_copy), { :controller => 'projects', :action => 'copy', :id => project }, :class => 'icon icon-copy') %> <%= link_to(l(:button_delete), project_path(project), :method => :delete, :class => 'icon icon-del') %>
<% html_title(l(:label_project_plural)) -%>