<% if time_entry.editable_by?(User.current) -%>
<%= link_to sprite_icon('edit', l(:button_edit)), edit_time_entry_path(time_entry),
:title => l(:button_edit),
:class => 'icon-only icon-edit ' %>
<%= link_to sprite_icon('del', l(:button_delete)), time_entry_path(time_entry),
:data => {:confirm => l(:text_are_you_sure)},
:method => :delete,
:title => l(:button_delete),
:class => 'icon-only icon-del ' %>
<% end -%>
-
<%= l(:label_time_entry_plural) %>:
<%= l_hours_short time_entry.hours %>
<%= time_entry.comments %>
<%= call_hook(:view_issues_history_time_entry_bottom, { :time_entry => time_entry }) %>
<% end %>