--- /usr/share/redmine/app/views/admin/projects.html.erb 2012-09-16 15:54:13.000000000 +0300 +++ projects.html.erb 2012-09-22 23:03:26.260691074 +0300 @@ -4,37 +4,56 @@
<%=l(:label_project)%> | -<%=l(:field_is_public)%> | -<%=l(:field_created_on)%> | + <% @list_settings.columns.each do |column| %> +<%= h(column.caption) %> | + <% end %>|
---|---|---|---|---|
<%= link_to_project(project, {:action => (project.active? ? 'settings' : 'show')}, :title => project.short_description) %> | -<%= checked_image project.is_public? %> | -<%= format_date(project.created_on) %> | +||
<%= extended_column_content(column, project) %> | + <% end %>- <%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock') unless project.archived? %> - <%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project, :status => params[:status] }, :method => :post, :class => 'icon icon-unlock') if project.archived? && (project.parent.nil? || !project.parent.archived?) %> + <%= 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? %> + <%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project, :status => params[:status] }, :method => :post, :class => 'icon icon-unlock') if !project.active? && (project.parent.nil? || project.parent.active?) %> <%= 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') %> + <%= link_to(l(:button_delete), project_destroy_confirm_path(project), :class => 'icon icon-del') %> |