summaryrefslogtreecommitdiffstats
path: root/app/views/context_menus
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-04 11:54:47 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-04 11:54:47 +0000
commit098fabd6ce4c4b69ff97a2c888388e1b1a5d288a (patch)
tree0f267c46be2863419e02565b337a8beeb19359d8 /app/views/context_menus
parentc2baf187ac6688382eeb0f8baad8898ccb78ea2f (diff)
downloadredmine-098fabd6ce4c4b69ff97a2c888388e1b1a5d288a.tar.gz
redmine-098fabd6ce4c4b69ff97a2c888388e1b1a5d288a.zip
add function of bulk delete time entries (#7996).
Contributed by Adam Soltys. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5316 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/context_menus')
-rw-r--r--app/views/context_menus/time_entries.html.erb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/context_menus/time_entries.html.erb b/app/views/context_menus/time_entries.html.erb
index 0eeac9787..ed6ba4ee7 100644
--- a/app/views/context_menus/time_entries.html.erb
+++ b/app/views/context_menus/time_entries.html.erb
@@ -24,4 +24,10 @@
<% end %>
<%= call_hook(:view_time_entries_context_menu_end, {:time_entries => @time_entries, :can => @can, :back => @back }) %>
+
+ <li>
+ <%= context_menu_link l(:button_delete),
+ {:controller => 'timelog', :action => 'destroy', :ids => @time_entries.collect(&:id), :back_url => @back},
+ :method => :delete, :confirm => l(:text_time_entries_destroy_confirmation), :class => 'icon-del', :disabled => !@can[:delete] %>
+ </li>
</ul>