<%= sort_header_tag('spent_on', :caption => l(:label_date), :default_order => 'desc') %> <%= sort_header_tag('user', :caption => l(:label_member)) %> <%= sort_header_tag('project', :caption => l(:label_project)) %> <%= sort_header_tag('issue', :caption => l(:label_issue), :default_order => 'desc') %> <%= sort_header_tag('units', :caption => l(:label_units)) %> <%= sort_header_tag('costs', :caption => l(:label_overall_costs)) %> <% entries.each do |entry| -%> "> <% end -%>
<%= l(:field_comments) %>
<%= format_date(entry.spent_on) %> <%=h entry.user %> <%=h entry.project %> <% if entry.issue -%> <%= link_to_issue entry.issue %>: <%= h(truncate(entry.issue.subject, 50)) -%> <% end -%> <%=h entry.comments %> <%= pluralize(entry.units, entry.cost_type.unit, entry.cost_type.unit_plural) %> <% if User.current.allowed_to?(:view_unit_price, entry.project) || (entry.user == User.current && entry.overridden_costs ) -%> <%= number_to_currency entry.real_costs %> <%- else -%>-<% end -%> <% if entry.editable_by?(User.current) -%> <%= link_to image_tag('edit.png'), {:controller => 'costlog', :action => 'edit', :id => entry, :project_id => nil}, :title => l(:button_edit) %> <%= link_to image_tag('delete.png'), {:controller => 'costlog', :action => 'destroy', :id => entry, :project_id => nil}, :confirm => l(:text_are_you_sure), :method => :post, :title => l(:button_delete) %> <% end -%>