<% @admin_list = User.current.admin? && controller_name == 'admin' && action_name == 'projects' %> <%= render_query_totals(@query) %> <%= form_tag({}, data: {cm_url: projects_context_menu_path}) do -%> <%= hidden_field_tag 'back_url', url_for(params: request.query_parameters), id: nil %>
<% if @admin_list %> <% end %> <% @query.inline_columns.each do |column| %> <%= column_header(@query, column) %> <% end %> <% if @admin_list %> <% end %> <% grouped_project_list(entries, @query) do |entry, level, group_name, group_count, group_totals| -%> <% if group_name %> <% reset_cycle %> <% if @admin_list %> <% end %> <% end %> "> <% if @admin_list %> <% if !entry.scheduled_for_deletion? %> <% else %> <% end %> <% end %> <% @query.inline_columns.each do |column| %> <%= content_tag('td', column_content(column, entry), :class => column.css_classes) %> <% end %> <% if @admin_list %> <% if !entry.scheduled_for_deletion? %> <% else %> <% end %> <% end %> <% end -%>
<%= check_box_tag 'check_all', '', false, :class => 'toggle-selection', :title => "#{l(:button_check_all)} / #{l(:button_uncheck_all)}" %>
  <%= group_name %> <% if group_count %> <%= group_count %> <% end %> <%= group_totals %> <%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}", "toggleAllRowGroups(this)", :class => 'toggle-all') %>
<%= check_box_tag("ids[]", entry.id, false, :id => nil) %><%= link_to_context_menu %>
<% end -%> <%= pagination_links_full @entry_pages, @entry_count %> <%= context_menu if @admin_list %>