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
This commit is contained in:
parent
e48cc150ec
commit
b67d624754
|
@ -1,4 +1,6 @@
|
||||||
<ul>
|
<ul>
|
||||||
|
<%= call_hook(:view_issues_context_menu_start, {:issues => @issues, :can => @can, :back => @back }) %>
|
||||||
|
|
||||||
<% if !@issue.nil? -%>
|
<% if !@issue.nil? -%>
|
||||||
<li><%= context_menu_link l(:button_edit), {:controller => 'issues', :action => 'edit', :id => @issue},
|
<li><%= context_menu_link l(:button_edit), {:controller => 'issues', :action => 'edit', :id => @issue},
|
||||||
:class => 'icon-edit', :disabled => !@can[:edit] %></li>
|
:class => 'icon-edit', :disabled => !@can[:edit] %></li>
|
||||||
|
@ -90,4 +92,6 @@
|
||||||
:class => 'icon-move', :disabled => !@can[:move] %></li>
|
:class => 'icon-move', :disabled => !@can[:move] %></li>
|
||||||
<li><%= context_menu_link l(:button_delete), {:controller => 'issues', :action => 'destroy', :ids => @issues.collect(&:id)},
|
<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>
|
: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>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue