summaryrefslogtreecommitdiffstats
path: root/app/views/timelog
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-07 14:39:29 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-07 14:39:29 +0000
commit851fbaf750d4bb1a579a02d636339793896050a6 (patch)
tree2ddeb4a3cf6674c77faa93634d558adb4b332424 /app/views/timelog
parent7b40767428ac5c04ba80d95c7c90b049c73c7f36 (diff)
downloadredmine-851fbaf750d4bb1a579a02d636339793896050a6.tar.gz
redmine-851fbaf750d4bb1a579a02d636339793896050a6.zip
Use named routes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9938 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/timelog')
-rw-r--r--app/views/timelog/_list.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/timelog/_list.html.erb b/app/views/timelog/_list.html.erb
index ccbf7369e..65a9000eb 100644
--- a/app/views/timelog/_list.html.erb
+++ b/app/views/timelog/_list.html.erb
@@ -37,9 +37,9 @@
<td class="hours"><%= html_hours("%.2f" % entry.hours) %></td>
<td align="center">
<% if entry.editable_by?(User.current) -%>
- <%= link_to image_tag('edit.png'), {:controller => 'timelog', :action => 'edit', :id => entry, :project_id => nil},
+ <%= link_to image_tag('edit.png'), edit_time_entry_path(entry),
:title => l(:button_edit) %>
- <%= link_to image_tag('delete.png'), {:controller => 'timelog', :action => 'destroy', :id => entry, :project_id => nil},
+ <%= link_to image_tag('delete.png'), time_entry_path(entry),
:data => {:confirm => l(:text_are_you_sure)},
:method => :delete,
:title => l(:button_delete) %>