|  | 1 | <% @admin_list = User.current.admin? && controller_name == 'admin' && action_name == 'projects' %> | 
  | 1 | 2 | <%= render_query_totals(@query) %> | 
  |  | 3 | <%= form_tag({}, data: {cm_url: projects_context_menu_path}) do -%> | 
  |  | 4 | <%= hidden_field_tag 'back_url', url_for(params: request.query_parameters), id: nil %> | 
  | 2 | 5 | <div class="autoscroll"> | 
  | 3 | 6 | <table class="list projects odd-even <%= @query.css_classes %>"> | 
  | 4 | 7 | <thead> | 
  | 5 | 8 |   <tr> | 
  |  | 9 |     <% if @admin_list %> | 
  |  | 10 |       <th class="checkbox hide-when-print"> | 
  |  | 11 |         <input type="checkbox" name="check_all" id="check_all" value="" class="toggle-selection" title="Check all/Uncheck all"> | 
  |  | 12 |       </th> | 
  |  | 13 |     <% end %> | 
  | 6 | 14 |     <% @query.inline_columns.each do |column| %> | 
  | 7 | 15 |       <%= column_header(@query, column) %> | 
  | 8 | 16 |     <% end %> | 
  | 9 |  |     <% if controller_name == 'admin' && action_name == 'projects' %> | 
  | 10 |  |     <th></th> | 
  |  | 17 |     <% if @admin_list %> | 
  |  | 18 |       <th></th> | 
  | 11 | 19 |     <% end %> | 
  | 12 | 20 |   </tr> | 
  | 13 | 21 | </thead> | 
  | ... | ... |  | 
  | 26 | 34 |         <%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}", | 
  | 27 | 35 |                              "toggleAllRowGroups(this)", :class => 'toggle-all') %> | 
  | 28 | 36 |       </td> | 
  | 29 |  |       <% if controller_name == 'admin' && action_name == 'projects' %> | 
  | 30 |  |       <td></td> | 
  |  | 37 |       <% if @admin_list %> | 
  |  | 38 |         <td></td> | 
  | 31 | 39 |       <% end %> | 
  | 32 | 40 |     </tr> | 
  | 33 | 41 |   <% end %> | 
  | 34 |  |   <tr id="project-<%= entry.id %>" class="<%= cycle('odd', 'even') %> <%= entry.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> | 
  |  | 42 |   <tr id="project-<%= entry.id %>" class="<%= cycle('odd', 'even') %> hascontextmenu <%= entry.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> | 
  |  | 43 |     <% if @admin_list %> | 
  |  | 44 |       <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td> | 
  |  | 45 |     <% end %> | 
  | 35 | 46 |     <% @query.inline_columns.each do |column| %> | 
  | 36 | 47 |     <%= content_tag('td', column_content(column, entry), :class => column.css_classes) %> | 
  | 37 | 48 |     <% end %> | 
  | 38 |  |     <% if controller_name == 'admin' && action_name == 'projects' %> | 
  | 39 |  |     <td class="buttons"> | 
  | 40 |  |       <%= link_to(l(:button_archive), archive_project_path(entry, :status => params[:status]), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock') unless entry.archived? %> | 
  | 41 |  |       <%= link_to(l(:button_unarchive), unarchive_project_path(entry, :status => params[:status]), :method => :post, :class => 'icon icon-unlock') if entry.archived? %> | 
  | 42 |  |       <%= link_to(l(:button_copy), copy_project_path(entry), :class => 'icon icon-copy') %> | 
  | 43 |  |       <%= link_to(l(:button_delete), project_path(entry), :method => :delete, :class => 'icon icon-del') %> | 
  | 44 |  |     </td> | 
  |  | 49 |     <% if @admin_list %> | 
  |  | 50 |       <td class="buttons"><%= link_to_context_menu %></td> | 
  | 45 | 51 |     <% end %> | 
  | 46 | 52 |   </tr> | 
  | 47 | 53 | <% end -%> | 
  | 48 | 54 | </tbody> | 
  | 49 | 55 | </table> | 
  | 50 | 56 | </div> | 
  |  | 57 | <% end -%> | 
  | 51 | 58 | <span class="pagination"><%= pagination_links_full @entry_pages, @entry_count %></span> | 
  | 52 | 59 |  | 
  | 53 | 60 | <div id="csv-export-options" style="display:none;"> | 
  | ... | ... |  | 
  | 65 | 72 |   </p> | 
  | 66 | 73 |   <% end %> | 
  | 67 | 74 | </div> | 
  |  | 75 | <%= context_menu if @admin_list %> |