"Fossies" - the Fresh Open Source Software Archive

Member "redmine-4.1.1/app/views/timelog/index.html.erb" (6 Apr 2020, 3146 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 <%= link_to l(:button_log_time),
    3             _new_time_entry_path(@project, @query.filtered_issue_id),
    4             :class => 'icon icon-time-add' if User.current.allowed_to?(:log_time, @project, :global => true) %>
    5 <%= actions_dropdown do %>
    6   <% if User.current.allowed_to?(:import_time_entries, @project, :global => true) %>
    7     <%= link_to l(:button_import), new_time_entries_import_path(:project_id => @project), :class => 'icon icon-import' %>
    8   <% end %>
    9 
   10   <%= link_to_if_authorized l(:label_settings),
   11             {:controller => 'projects', :action => 'settings', :id => @project, :tab => 'activities'},
   12             :class => 'icon icon-settings' if User.current.allowed_to?(:manage_project_activities, @project) %>
   13 <% end %>
   14 </div>
   15 
   16 <h2><%= @query.new_record? ? l(:label_spent_time) : @query.name %></h2>
   17 
   18 <%= form_tag(_time_entries_path(@project, nil), :method => :get, :id => 'query_form') do %>
   19 <%= render :partial => 'date_range' %>
   20 <% end %>
   21 
   22 <% if @query.valid? %>
   23 <% if @entries.empty? %>
   24 <p class="nodata"><%= l(:label_no_data) %></p>
   25 <% else %>
   26 <%= render_query_totals(@query) %>
   27 <%= render :partial => 'list', :locals => { :entries => @entries }%>
   28 <span class="pagination"><%= pagination_links_full @entry_pages, @entry_count %></span>
   29 
   30 <% other_formats_links do |f| %>
   31   <%= f.link_to_with_query_parameters 'Atom', :key => User.current.rss_key %>
   32   <%= f.link_to_with_query_parameters 'CSV', {}, :onclick => "showModal('csv-export-options', '330px'); return false;" %>
   33 <% end %>
   34 
   35 <div id="csv-export-options" style="display:none;">
   36   <h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3>
   37   <%= form_tag(_time_entries_path(@project, nil, :format => 'csv'), :method => :get, :id => 'csv-export-form') do %>
   38   <%= query_as_hidden_field_tags @query %>
   39   <p>
   40     <label><%= radio_button_tag 'c[]', '', true %> <%= l(:description_selected_columns) %></label><br />
   41     <label><%= radio_button_tag 'c[]', 'all_inline' %> <%= l(:description_all_columns) %></label>
   42   </p>
   43   <% if @query.available_block_columns.any? %>
   44     <fieldset id="csv-export-block-columns">
   45       <legend>
   46         <%= toggle_checkboxes_link('#csv-export-block-columns input[type=checkbox]') %>
   47       </legend>
   48       <% @query.available_block_columns.each do |column| %>
   49         <label><%= check_box_tag 'c[]', column.name, @query.has_column?(:column), :id => nil %> <%= column.caption %></label>
   50       <% end %>
   51     </fieldset>
   52   <% end %>
   53   <%= export_csv_encoding_select_tag %>
   54   <p class="buttons">
   55     <%= submit_tag l(:button_export), :name => nil, :onclick => "hideModal(this);", :data => { :disable_with => false } %>
   56     <%= link_to_function l(:button_cancel), "hideModal(this);" %>
   57   </p>
   58   <% end %>
   59 </div>
   60 <% end %>
   61 <% end %>
   62 
   63 <% content_for :sidebar do %>
   64   <%= render :partial => 'timelog/sidebar' %>
   65 <% end %>
   66 
   67 <% html_title(@query.new_record? ? l(:label_spent_time) : @query.name, l(:label_details)) %>
   68 
   69 <% content_for :header_tags do %>
   70     <%= auto_discovery_link_tag(:atom, {:issue_id => @issue, :format => 'atom', :key => User.current.rss_key}, :title => l(:label_spent_time)) %>
   71 <% end %>