"Fossies" - the Fresh Open Source Software Archive

Member "redmine-4.1.1/app/views/issues/index.html.erb" (6 Apr 2020, 4168 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. See also the latest Fossies "Diffs" side-by-side code changes report for "index.html.erb": 4.1.0_vs_4.1.1.

    1 <div class="contextual">
    2   <% if User.current.allowed_to?(:add_issues, @project, :global => true) && (@project.nil? || Issue.allowed_target_trackers(@project).any?) %>
    3     <%= link_to l(:label_issue_new), _new_project_issue_path(@project), :class => 'icon icon-add new-issue' %>
    4   <% end %>
    5   <%= actions_dropdown do %>
    6     <% if @project %>
    7       <%= link_to l(:field_summary), project_issues_report_path(@project), :class => 'icon icon-stats' %>
    8     <% end %>
    9 
   10     <% if User.current.allowed_to?(:import_issues, @project, :global => true) %>
   11       <%= link_to l(:button_import), new_issues_import_path(:project_id => @project), :class => 'icon icon-import' %>
   12     <% end %>
   13 
   14     <%= link_to_if_authorized l(:label_settings),
   15               {:controller => 'projects', :action => 'settings', :id => @project, :tab => 'issues'},
   16               :class => 'icon icon-settings' if User.current.allowed_to?(:manage_categories, @project) %>
   17   <% end %>
   18 </div>
   19 
   20 <h2><%= @query.new_record? ? l(:label_issue_plural) : @query.name %></h2>
   21 <% html_title(@query.new_record? ? l(:label_issue_plural) : @query.name) %>
   22 
   23 <%= form_tag(_project_issues_path(@project), :method => :get, :id => 'query_form') do %>
   24   <%= render :partial => 'queries/query_form' %>
   25 <% end %>
   26 
   27 <% if @query.valid? %>
   28 <% if @issues.empty? %>
   29 <p class="nodata"><%= l(:label_no_data) %></p>
   30 <% else %>
   31 <%= render_query_totals(@query) %>
   32 <%= render :partial => 'issues/list', :locals => {:issues => @issues, :query => @query} %>
   33 <span class="pagination"><%= pagination_links_full @issue_pages, @issue_count %></span>
   34 <% end %>
   35 
   36 <% other_formats_links do |f| %>
   37   <%= f.link_to_with_query_parameters 'Atom', :key => User.current.rss_key %>
   38   <%= f.link_to_with_query_parameters 'CSV', {}, :onclick => "showModal('csv-export-options', '350px'); return false;" %>
   39   <%= f.link_to_with_query_parameters 'PDF' %>
   40 <% end %>
   41 
   42 <div id="csv-export-options" style="display:none;">
   43   <h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3>
   44   <%= form_tag(_project_issues_path(@project, :format => 'csv'), :method => :get, :id => 'csv-export-form') do %>
   45   <%= query_as_hidden_field_tags(@query) %>
   46   <p>
   47     <label><%= radio_button_tag 'c[]', '', true %> <%= l(:description_selected_columns) %></label><br />
   48     <label><%= radio_button_tag 'c[]', 'all_inline' %> <%= l(:description_all_columns) %></label>
   49   </p>
   50   <% if @query.available_block_columns.any? %>
   51     <fieldset id="csv-export-block-columns">
   52       <legend>
   53         <%= toggle_checkboxes_link('#csv-export-block-columns input[type=checkbox]') %>
   54       </legend>
   55       <% @query.available_block_columns.each do |column| %>
   56         <label><%= check_box_tag 'c[]', column.name, @query.has_column?(column), :id => nil %> <%= column.caption %></label>
   57       <% end %>
   58     </fieldset>
   59   <% end %>
   60   <%= export_csv_encoding_select_tag %>
   61   <% if @issue_count > Setting.issues_export_limit.to_i %>
   62   <p class="icon icon-warning">
   63     <%= l(:setting_issues_export_limit) %>: <%= Setting.issues_export_limit.to_i %>
   64   </p>
   65   <% end %>
   66   <p class="buttons">
   67     <%= submit_tag l(:button_export), :name => nil, :onclick => "hideModal(this);", :data => { :disable_with => false } %>
   68     <%= link_to_function l(:button_cancel), "hideModal(this);" %>
   69   </p>
   70   <% end %>
   71 </div>
   72 
   73 <% end %>
   74 <%= call_hook(:view_issues_index_bottom, { :issues => @issues, :project => @project, :query => @query }) %>
   75 
   76 <% content_for :sidebar do %>
   77     <%= render :partial => 'issues/sidebar' %>
   78 <% end %>
   79 
   80 <% content_for :header_tags do %>
   81     <%= auto_discovery_link_tag(:atom,
   82                                 {:query_id => @query, :format => 'atom',
   83                                  :page => nil, :key => User.current.rss_key},
   84                                 :title => l(:label_issue_plural)) %>
   85     <%= auto_discovery_link_tag(:atom,
   86                                 {:controller => 'journals', :action => 'index',
   87                                  :query_id => @query, :format => 'atom',
   88                                  :page => nil, :key => User.current.rss_key},
   89                                 :title => l(:label_changes_details)) %>
   90 <% end %>
   91 
   92 <%= context_menu %>