index.html.erb
49 lines
| 2.1 KiB
| text/plain
|
TextLexer
|
r2781 | <div class="contextual"> | ||
|
r8571 | <%= link_to l(:button_log_time), | ||
|
r13060 | _new_time_entry_path(@project, @issue), | ||
|
r8571 | :class => 'icon icon-time-add' if User.current.allowed_to?(:log_time, @project, :global => true) %> | ||
|
r2781 | </div> | ||
|
r15257 | <h2><%= @query.new_record? ? l(:label_spent_time) : @query.name %></h2> | ||
|
r2781 | |||
|
r15262 | <%= form_tag(_time_entries_path(@project, nil), :method => :get, :id => 'query_form') do %> | ||
|
r2781 | <%= render :partial => 'date_range' %> | ||
<% end %> | ||||
|
r15381 | <% if @entries.empty? %> | ||
<p class="nodata"><%= l(:label_no_data) %></p> | ||||
<% else %> | ||||
|
r15267 | <%= render_query_totals(@query) %> | ||
|
r2781 | <%= render :partial => 'list', :locals => { :entries => @entries }%> | ||
|
r14515 | <span class="pagination"><%= pagination_links_full @entry_pages, @entry_count %></span> | ||
|
r2781 | |||
<% other_formats_links do |f| %> | ||||
|
r15249 | <%= f.link_to_with_query_parameters 'Atom', :key => User.current.rss_key %> | ||
<%= f.link_to_with_query_parameters 'CSV', {}, :onclick => "showModal('csv-export-options', '330px'); return false;" %> | ||||
|
r2781 | <% end %> | ||
|
r11212 | |||
<div id="csv-export-options" style="display:none;"> | ||||
<h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3> | ||||
|
r15291 | <%= form_tag(_time_entries_path(@project, nil, :format => 'csv'), :method => :get, :id => 'csv-export-form') do %> | ||
<%= query_as_hidden_field_tags @query %> | ||||
|
r11212 | <p> | ||
|
r15837 | <label><%= radio_button_tag 'c[]', '', true %> <%= l(:description_selected_columns) %></label><br /> | ||
<label><%= radio_button_tag 'c[]', 'all_inline' %> <%= l(:description_all_columns) %></label> | ||||
|
r11212 | </p> | ||
<p class="buttons"> | ||||
<%= submit_tag l(:button_export), :name => nil, :onclick => "hideModal(this);" %> | ||||
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %> | ||||
</p> | ||||
<% end %> | ||||
</div> | ||||
|
r2781 | <% end %> | ||
|
r15260 | <% content_for :sidebar do %> | ||
<%= render_sidebar_queries(TimeEntryQuery, @project) %> | ||||
<% end %> | ||||
|
r15257 | <% html_title(@query.new_record? ? l(:label_spent_time) : @query.name, l(:label_details)) %> | ||
|
r2781 | |||
<% content_for :header_tags do %> | ||||
<%= auto_discovery_link_tag(:atom, {:issue_id => @issue, :format => 'atom', :key => User.current.rss_key}, :title => l(:label_spent_time)) %> | ||||
<% end %> | ||||