##// END OF EJS Templates
Removed the "Move" button for single issue since it can be moved from the reguler update form....
Jean-Philippe Lang -
r8413:14267311aac6
parent child
Show More
@@ -112,8 +112,10
112 <% end %>
112 <% end %>
113 <li><%= context_menu_link l(:button_copy), new_issue_move_path(:ids => @issues.collect(&:id), :copy_options => {:copy => 't'}),
113 <li><%= context_menu_link l(:button_copy), new_issue_move_path(:ids => @issues.collect(&:id), :copy_options => {:copy => 't'}),
114 :class => 'icon-copy', :disabled => !@can[:move] %></li>
114 :class => 'icon-copy', :disabled => !@can[:move] %></li>
115 <% unless @issue.present? %>
115 <li><%= context_menu_link l(:button_move), new_issue_move_path(:ids => @issues.collect(&:id)),
116 <li><%= context_menu_link l(:button_move), new_issue_move_path(:ids => @issues.collect(&:id)),
116 :class => 'icon-move', :disabled => !@can[:move] %></li>
117 :class => 'icon-move', :disabled => !@can[:move] %></li>
118 <% end %>
117 <li><%= context_menu_link l(:button_delete), issues_path(:ids => @issues.collect(&:id), :back_url => @back),
119 <li><%= context_menu_link l(:button_delete), issues_path(:ids => @issues.collect(&:id), :back_url => @back),
118 :method => :delete, :confirm => issues_destroy_confirmation_message(@issues), :class => 'icon-del', :disabled => !@can[:delete] %></li>
120 :method => :delete, :confirm => issues_destroy_confirmation_message(@issues), :class => 'icon-del', :disabled => !@can[:delete] %></li>
119
121
@@ -4,6 +4,5
4 <%= watcher_tag(@issue, User.current) %>
4 <%= watcher_tag(@issue, User.current) %>
5 <%= link_to_if_authorized l(:button_duplicate), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue }, :class => 'icon icon-duplicate' %>
5 <%= link_to_if_authorized l(:button_duplicate), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue }, :class => 'icon icon-duplicate' %>
6 <%= link_to_if_authorized l(:button_copy), {:controller => 'issue_moves', :action => 'new', :id => @issue, :copy_options => {:copy => 't'}}, :class => 'icon icon-copy' %>
6 <%= link_to_if_authorized l(:button_copy), {:controller => 'issue_moves', :action => 'new', :id => @issue, :copy_options => {:copy => 't'}}, :class => 'icon icon-copy' %>
7 <%= link_to_if_authorized l(:button_move), {:controller => 'issue_moves', :action => 'new', :id => @issue}, :class => 'icon icon-move' %>
8 <%= link_to l(:button_delete), issue_path(@issue), :confirm => issues_destroy_confirmation_message(@issue), :method => :delete, :class => 'icon icon-del' if User.current.allowed_to?(:delete_issues, @project) %>
7 <%= link_to l(:button_delete), issue_path(@issue), :confirm => issues_destroy_confirmation_message(@issue), :method => :delete, :class => 'icon icon-del' if User.current.allowed_to?(:delete_issues, @project) %>
9 </div>
8 </div>
@@ -49,9 +49,7 class ContextMenusControllerTest < ActionController::TestCase
49 assert_tag :tag => 'a', :content => 'Copy',
49 assert_tag :tag => 'a', :content => 'Copy',
50 :attributes => { :href => '/issues/move/new?copy_options%5Bcopy%5D=t&amp;ids%5B%5D=1',
50 :attributes => { :href => '/issues/move/new?copy_options%5Bcopy%5D=t&amp;ids%5B%5D=1',
51 :class => 'icon-copy' }
51 :class => 'icon-copy' }
52 assert_tag :tag => 'a', :content => 'Move',
52 assert_no_tag :tag => 'a', :content => 'Move'
53 :attributes => { :href => '/issues/move/new?ids%5B%5D=1',
54 :class => 'icon-move' }
55 assert_tag :tag => 'a', :content => 'Delete',
53 assert_tag :tag => 'a', :content => 'Delete',
56 :attributes => { :href => '/issues?ids%5B%5D=1',
54 :attributes => { :href => '/issues?ids%5B%5D=1',
57 :class => 'icon-del' }
55 :class => 'icon-del' }
General Comments 0
You need to be logged in to leave comments. Login now