chris@37
|
1 <div class="contextual">
|
chris@37
|
2 <%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'new', :project_id => @project, :issue_id => @issue}, :class => 'icon icon-time-add' %>
|
chris@37
|
3 </div>
|
chris@37
|
4
|
chris@37
|
5 <%= render_timelog_breadcrumb %>
|
chris@37
|
6
|
chris@37
|
7 <h2><%= l(:label_spent_time) %></h2>
|
chris@37
|
8
|
chris@37
|
9 <% form_remote_tag( :url => {}, :html => {:method => :get, :id => 'query_form'}, :method => :get, :update => 'content' ) do %>
|
chris@37
|
10 <%# TOOD: remove the project_id and issue_id hidden fields, that information is
|
chris@37
|
11 already in the URI %>
|
chris@37
|
12 <%= hidden_field_tag('project_id', params[:project_id]) if @project %>
|
chris@37
|
13 <%= hidden_field_tag 'issue_id', params[:issue_id] if @issue %>
|
chris@37
|
14 <%= render :partial => 'date_range' %>
|
chris@37
|
15 <% end %>
|
chris@37
|
16
|
chris@37
|
17 <div class="total-hours">
|
chris@37
|
18 <p><%= l(:label_total) %>: <%= html_hours(l_hours(@total_hours)) %></p>
|
chris@37
|
19 </div>
|
chris@37
|
20
|
chris@37
|
21 <% unless @entries.empty? %>
|
chris@37
|
22 <%= render :partial => 'list', :locals => { :entries => @entries }%>
|
chris@37
|
23 <p class="pagination"><%= pagination_links_full @entry_pages, @entry_count %></p>
|
chris@37
|
24
|
chris@37
|
25 <% other_formats_links do |f| %>
|
chris@37
|
26 <%= f.link_to 'Atom', :url => params.merge({:issue_id => @issue, :key => User.current.rss_key}) %>
|
chris@37
|
27 <%= f.link_to 'CSV', :url => params %>
|
chris@37
|
28 <% end %>
|
chris@37
|
29 <% end %>
|
chris@37
|
30
|
chris@37
|
31 <% html_title l(:label_spent_time), l(:label_details) %>
|
chris@37
|
32
|
chris@37
|
33 <% content_for :header_tags do %>
|
chris@37
|
34 <%= auto_discovery_link_tag(:atom, {:issue_id => @issue, :format => 'atom', :key => User.current.rss_key}, :title => l(:label_spent_time)) %>
|
chris@37
|
35 <% end %>
|