To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / timelog / index.html.erb @ 1298:4f746d8966dd

History | View | Annotate | Download (2.08 KB)

1 37:94944d00e43c chris
<div class="contextual">
2 1115:433d4f72a19b Chris
<%= link_to l(:button_log_time),
3
            {:controller => 'timelog', :action => 'new', :project_id => @project, :issue_id => @issue},
4
            :class => 'icon icon-time-add' if User.current.allowed_to?(:log_time, @project, :global => true) %>
5 37:94944d00e43c chris
</div>
6
7
<%= render_timelog_breadcrumb %>
8
9
<h2><%= l(:label_spent_time) %></h2>
10
11 1115:433d4f72a19b Chris
<%= form_tag({:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue}, :method => :get, :id => 'query_form') do %>
12 37:94944d00e43c chris
<%= render :partial => 'date_range' %>
13
<% end %>
14
15
<div class="total-hours">
16 1295:622f24f53b42 Chris
<p><%= l(:label_total_time) %>: <%= html_hours(l_hours(@total_hours)) %></p>
17 37:94944d00e43c chris
</div>
18
19
<% unless @entries.empty? %>
20
<%= render :partial => 'list', :locals => { :entries => @entries }%>
21
<p class="pagination"><%= pagination_links_full @entry_pages, @entry_count %></p>
22
23
<% other_formats_links do |f| %>
24 909:cbb26bc654de Chris
  <%= f.link_to 'Atom', :url => params.merge({:issue_id => @issue, :key => User.current.rss_key}) %>
25 1295:622f24f53b42 Chris
  <%= f.link_to 'CSV', :url => params, :onclick => "showModal('csv-export-options', '330px'); return false;" %>
26 37:94944d00e43c chris
<% end %>
27 1295:622f24f53b42 Chris
28
<div id="csv-export-options" style="display:none;">
29
  <h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3>
30
  <%= form_tag(params.slice(:project_id, :issue_id).merge(:format => 'csv', :page=>nil), :method => :get, :id => 'csv-export-form') do %>
31
  <%= query_hidden_tags @query %>
32
  <p>
33
    <label><%= radio_button_tag 'columns', '', true %> <%= l(:description_selected_columns) %></label><br />
34
    <label><%= radio_button_tag 'columns', 'all' %> <%= l(:description_all_columns) %></label>
35
  </p>
36
  <p class="buttons">
37
    <%= submit_tag l(:button_export), :name => nil, :onclick => "hideModal(this);" %>
38
    <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
39
  </p>
40
  <% end %>
41
</div>
42 37:94944d00e43c chris
<% end %>
43
44
<% html_title l(:label_spent_time), l(:label_details) %>
45
46
<% content_for :header_tags do %>
47
    <%= auto_discovery_link_tag(:atom, {:issue_id => @issue, :format => 'atom', :key => User.current.rss_key}, :title => l(:label_spent_time)) %>
48
<% end %>