%= form_tag({}) do -%> <%= hidden_field_tag 'back_url', url_for(params) %>
<% if entry.editable_by?(User.current) -%> <%= link_to l(:button_edit), edit_time_entry_path(entry), :title => l(:button_edit), :class => 'icon-only icon-edit' %> <%= link_to l(:button_delete), time_entry_path(entry), :data => {:confirm => l(:text_are_you_sure)}, :method => :delete, :title => l(:button_delete), :class => 'icon-only icon-del' %> <% end -%> |