summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2009-03-21 00:01:48 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2009-03-21 00:01:48 +0000
commitb67d624754f7f02815f7ef2a80c2405f036f92d7 (patch)
tree51cdf45c2e024f5cf39e69f5713e82a31ebfe022 /app
parente48cc150ec7db0758d8025c376288f36becbbb2f (diff)
downloadredmine-b67d624754f7f02815f7ef2a80c2405f036f92d7.tar.gz
redmine-b67d624754f7f02815f7ef2a80c2405f036f92d7.zip
Added plugin hooks to the context menu
* :view_issues_context_menu_start * :view_issues_context_menu_end #3013 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2610 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/issues/context_menu.rhtml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/issues/context_menu.rhtml b/app/views/issues/context_menu.rhtml
index 0d50e5f76..ae9a1afcb 100644
--- a/app/views/issues/context_menu.rhtml
+++ b/app/views/issues/context_menu.rhtml
@@ -1,4 +1,6 @@
<ul>
+ <%= call_hook(:view_issues_context_menu_start, {:issues => @issues, :can => @can, :back => @back }) %>
+
<% if !@issue.nil? -%>
<li><%= context_menu_link l(:button_edit), {:controller => 'issues', :action => 'edit', :id => @issue},
:class => 'icon-edit', :disabled => !@can[:edit] %></li>
@@ -90,4 +92,6 @@
:class => 'icon-move', :disabled => !@can[:move] %></li>
<li><%= context_menu_link l(:button_delete), {:controller => 'issues', :action => 'destroy', :ids => @issues.collect(&:id)},
:method => :post, :confirm => l(:text_issues_destroy_confirmation), :class => 'icon-del', :disabled => !@can[:delete] %></li>
+
+ <%= call_hook(:view_issues_context_menu_end, {:issues => @issues, :can => @can, :back => @back }) %>
</ul>