<%= sort_header_tag("issue_id", :caption => l(:caption_issue), :default_order => 'desc') %> <%= sort_header_tag("spent_on", :caption => l(:caption_spent_on), :default_order => 'desc') %> <% @entries.each do |entry| %> <% end %>
<%= l(:caption_cost_unit_plural) %> <%= l(:caption_cost_type) %> <%= l(:caption_activity) %><%= l(:caption_user) %> <%= l(:caption_costs) %>
<%= link_to_issue entry.issue %>: <%= h(truncate(entry.issue.subject, 50)) -%> <%= (link_to pluralize(entry.units, entry.cost_type.unit, entry.cost_type.unit_plural), {:controller => "costlog", :action => "details", :cost_type_id => entry.cost_type, :issue_id => entry.issue}) if entry.is_a?(CostEntry) %> <%= entry.cost_type if entry.is_a?(CostEntry)%> <%= entry.activity if entry.is_a?(TimeEntry)%> <%= format_date entry.spent_on %> <%= link_to_user entry.user %> <%= number_to_currency(entry.real_costs) %>