annotate app/views/timelog/details.rhtml @ 8:0c83d98252d9 yuya

* Add custom repo prefix and proper auth realm, remove auth cache (seems like an unwise feature), pass DB handle around, various other bits of tidying
author Chris Cannam
date Thu, 12 Aug 2010 15:31:37 +0100
parents 513646585e45
children
rev   line source
Chris@0 1 <div class="contextual">
Chris@0 2 <%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :project_id => @project, :issue_id => @issue}, :class => 'icon icon-time-add' %>
Chris@0 3 </div>
Chris@0 4
Chris@0 5 <%= render_timelog_breadcrumb %>
Chris@0 6
Chris@0 7 <h2><%= l(:label_spent_time) %></h2>
Chris@0 8
Chris@0 9 <% form_remote_tag( :url => {}, :html => {:method => :get, :id => 'query_form'}, :method => :get, :update => 'content' ) do %>
Chris@0 10 <%# TOOD: remove the project_id and issue_id hidden fields, that information is
Chris@0 11 already in the URI %>
Chris@0 12 <%= hidden_field_tag('project_id', params[:project_id]) if @project %>
Chris@0 13 <%= hidden_field_tag 'issue_id', params[:issue_id] if @issue %>
Chris@0 14 <%= render :partial => 'date_range' %>
Chris@0 15 <% end %>
Chris@0 16
Chris@0 17 <div class="total-hours">
Chris@0 18 <p><%= l(:label_total) %>: <%= html_hours(l_hours(@total_hours)) %></p>
Chris@0 19 </div>
Chris@0 20
Chris@0 21 <% unless @entries.empty? %>
Chris@0 22 <%= render :partial => 'list', :locals => { :entries => @entries }%>
Chris@0 23 <p class="pagination"><%= pagination_links_full @entry_pages, @entry_count %></p>
Chris@0 24
Chris@0 25 <% other_formats_links do |f| %>
Chris@0 26 <%= f.link_to 'Atom', :url => params.merge({:issue_id => @issue, :key => User.current.rss_key}) %>
Chris@0 27 <%= f.link_to 'CSV', :url => params %>
Chris@0 28 <% end %>
Chris@0 29 <% end %>
Chris@0 30
Chris@0 31 <% html_title l(:label_spent_time), l(:label_details) %>
Chris@0 32
Chris@0 33 <% content_for :header_tags do %>
Chris@0 34 <%= auto_discovery_link_tag(:atom, {:issue_id => @issue, :format => 'atom', :key => User.current.rss_key}, :title => l(:label_spent_time)) %>
Chris@0 35 <% end %>