##// END OF EJS Templates
Use named routes....
Jean-Philippe Lang -
r9755:851fbaf750d4
parent child
Show More
@@ -37,9 +37,9
37 <td class="hours"><%= html_hours("%.2f" % entry.hours) %></td>
37 <td class="hours"><%= html_hours("%.2f" % entry.hours) %></td>
38 <td align="center">
38 <td align="center">
39 <% if entry.editable_by?(User.current) -%>
39 <% if entry.editable_by?(User.current) -%>
40 <%= link_to image_tag('edit.png'), {:controller => 'timelog', :action => 'edit', :id => entry, :project_id => nil},
40 <%= link_to image_tag('edit.png'), edit_time_entry_path(entry),
41 :title => l(:button_edit) %>
41 :title => l(:button_edit) %>
42 <%= link_to image_tag('delete.png'), {:controller => 'timelog', :action => 'destroy', :id => entry, :project_id => nil},
42 <%= link_to image_tag('delete.png'), time_entry_path(entry),
43 :data => {:confirm => l(:text_are_you_sure)},
43 :data => {:confirm => l(:text_are_you_sure)},
44 :method => :delete,
44 :method => :delete,
45 :title => l(:button_delete) %>
45 :title => l(:button_delete) %>
General Comments 0
You need to be logged in to leave comments. Login now