"Fossies" - the Fresh Open Source Software Archive

Member "redmine-4.1.1/app/views/projects/_list.html.erb" (6 Apr 2020, 2204 Bytes) of package /linux/www/redmine-4.1.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) ERB Templates source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <%= render_query_totals(@query) %>
    2 <div class="autoscroll">
    3 <table class="list projects odd-even <%= @query.css_classes %>">
    4 <thead>
    5   <tr>
    6     <% @query.inline_columns.each do |column| %>
    7       <%= column_header(@query, column) %>
    8     <% end %>
    9   </tr>
   10 </thead>
   11 <tbody>
   12 <% grouped_project_list(entries, @query) do |entry, level, group_name, group_count, group_totals| -%>
   13   <% if group_name %>
   14     <% reset_cycle %>
   15     <tr class="group open">
   16       <td colspan="<%= @query.inline_columns.size %>">
   17         <span class="expander icon icon-expended" onclick="toggleRowGroup(this);">&nbsp;</span>
   18         <span class="name"><%= group_name %></span>
   19         <% if group_count %>
   20         <span class="count"><%= group_count %></span>
   21         <% end %>
   22         <span class="totals"><%= group_totals %></span>
   23         <%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}",
   24                              "toggleAllRowGroups(this)", :class => 'toggle-all') %>
   25       </td>
   26     </tr>
   27   <% end %>
   28   <tr id="project-<%= entry.id %>" class="<%= cycle('odd', 'even') %> <%= entry.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
   29     <% @query.inline_columns.each do |column| %>
   30     <%= content_tag('td', column_content(column, entry), :class => column.css_classes) %>
   31     <% end %>
   32   </tr>
   33 <% end -%>
   34 </tbody>
   35 </table>
   36 </div>
   37 <span class="pagination"><%= pagination_links_full @entry_pages, @entry_count %></span>
   38 
   39 <div id="csv-export-options" style="display:none;">
   40   <h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3>
   41   <%= form_tag(projects_path(:format => 'csv'), :method => :get, :id => 'csv-export-form') do %>
   42   <%= query_as_hidden_field_tags(@query) %>
   43   <p>
   44     <label><%= radio_button_tag 'c[]', '', true %> <%= l(:description_selected_columns) %></label><br />
   45     <label><%= radio_button_tag 'c[]', 'all_inline' %> <%= l(:description_all_columns) %></label>
   46   </p>
   47   <%= export_csv_encoding_select_tag %>
   48   <p class="buttons">
   49     <%= submit_tag l(:button_export), :name => nil, :onclick => "hideModal(this);", :data => { :disable_with => false } %>
   50     <%= link_to_function l(:button_cancel), "hideModal(this);" %>
   51   </p>
   52   <% end %>
   53 </div>