To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 25 / 25a75439387b5e7c9157d74c8baba2d41c8319c0.svn-base @ 1298:4f746d8966dd
History | View | Annotate | Download (2.08 KB)
| 1 | 1295:622f24f53b42 | Chris | <div class="contextual"> |
|---|---|---|---|
| 2 | <%= 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 | </div> |
||
| 6 | |||
| 7 | <%= render_timelog_breadcrumb %> |
||
| 8 | |||
| 9 | <h2><%= l(:label_spent_time) %></h2> |
||
| 10 | |||
| 11 | <%= form_tag({:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue}, :method => :get, :id => 'query_form') do %>
|
||
| 12 | <%= render :partial => 'date_range' %> |
||
| 13 | <% end %> |
||
| 14 | |||
| 15 | <div class="total-hours"> |
||
| 16 | <p><%= l(:label_total_time) %>: <%= html_hours(l_hours(@total_hours)) %></p> |
||
| 17 | </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 | <%= f.link_to 'Atom', :url => params.merge({:issue_id => @issue, :key => User.current.rss_key}) %>
|
||
| 25 | <%= f.link_to 'CSV', :url => params, :onclick => "showModal('csv-export-options', '330px'); return false;" %>
|
||
| 26 | <% end %> |
||
| 27 | |||
| 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 | <% 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 %> |