]> source.dussan.org Git - redmine.git/commitdiff
Added plugin hooks to the context menu
authorEric Davis <edavis@littlestreamsoftware.com>
Sat, 21 Mar 2009 00:01:48 +0000 (00:01 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Sat, 21 Mar 2009 00:01:48 +0000 (00:01 +0000)
* :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

app/views/issues/context_menu.rhtml

index 0d50e5f76b8bd80fcd935b42e5b7b25e35089a47..ae9a1afcb04d0ae916956d3f8bd047cb96f4ffd7 100644 (file)
@@ -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>