">
<%= format_date(entry.spent_on) %> |
<%=h entry.user %> |
<%=h entry.project %> |
<% if entry.work_package -%>
<%= link_to_work_package entry.work_package -%>
<% end -%>
|
<%= pluralize(entry.units, entry.cost_type.unit, entry.cost_type.unit_plural) %> |
<% if entry.costs_visible_by?(User.current) -%>
<%= number_to_currency entry.real_costs %>
<%- else -%>-<% end -%>
|
<% if entry.editable_by?(User.current) -%>
<%= link_to image_tag('webalys/edit.png'), {:controller => '/costlog', :action => 'edit', :id => entry, :project_id => nil},
:title => l(:button_edit) %>
<%= link_to image_tag('webalys/delete.png'), {:controller => '/costlog', :action => 'destroy', :id => entry, :project_id => nil},
:confirm => l(:text_are_you_sure),
:method => :delete,
:title => l(:button_delete) %>
<% end -%>
|
<% end -%>