]> source.dussan.org Git - redmine.git/commitdiff
Revert "Make an issue's done_ratio field adjustable from the right-click"
authorJohn Goerzen <jgoerzen@complete.org>
Thu, 20 Mar 2008 19:25:18 +0000 (19:25 +0000)
committerJohn Goerzen <jgoerzen@complete.org>
Thu, 20 Mar 2008 19:25:18 +0000 (19:25 +0000)
Reverts commit r1277
fixes #904
refs #641

This had been working for me in testing for some time, but received
issue #904 saying it broke the context menu.  I was able to make it do
so on a new project as well.  Will revert and comment in #641 about this.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1278 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/context_menu.rhtml

index adb3960cac6bcfcf60cc8077fe9d1d2721e0b6ef..b3a03b05d47e01040384bf7c278e1f1389249de1 100644 (file)
                                              :selected => @issue.assigned_to.nil?, :disabled => !@can[:update] %></li>
                </ul>
        </li>
-       <li class="folder">
-               <a href="#" class="submenu"><%= l(:field_done_ratio) %></a>
-               <ul>
-               <% (0..10).map{|x|x*10}.each do |p| -%>
-                   <li><%= context_menu_link "#{p.to_s}%", {:controller => 'issues', :action => 'edit', :id => @issue, 'issue[done_ratio]' => p, :back_to => back_to}, :method => :post,
-                                                 :selected => (p == @issue.done_ratio), :disabled => !@can[:edit] %></li>
-               <% end -%>
-               </ul>
-       </li>
        <li><%= context_menu_link l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue},
                :class => 'icon-copy', :disabled => !@can[:copy] %></li>
 <% else -%>