<%= link_to_if_authorized l(:button_log_costs), {:controller => 'costlog', :action => 'edit', :project_id => @project, :issue_id => @issue}, :class => 'icon icon-pieces' %>
<%= render_costlog_breadcrumb %>
<%= l(:label_spent_costs) %>
<%= form_remote_tag( :url => {}, :method => :get, :update => 'content' ) do %>
<%= hidden_field_tag('project_id', params[:project_id]) if @project %>
<%= hidden_field_tag 'issue_id', params[:issue_id] if @issue %>
<%= hidden_field_tag 'cost_type_id', params[:cost_type_id] if @cost_type %>
<%= render :partial => 'date_range' %>
<% end %>
<% unless @entries.empty? %>
<%= render :partial => 'list', :locals => { :entries => @entries }%>
<%= l(:label_export_to) %>
<%= link_to 'Atom', {:issue_id => @issue, :format => 'atom', :key => User.current.rss_key}, :class => 'feed' %>
<%= link_to 'CSV', params.merge(:format => 'csv'), :class => 'csv' %>
<% end %>
<% html_title l(:label_spent_costs), l(:label_details) %>
<% content_for :header_tags do %>
<%= render :partial => 'shared/costs_header' %>
<% end %>