summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Goerzen <jgoerzen@complete.org>2008-03-20 17:41:03 +0000
committerJohn Goerzen <jgoerzen@complete.org>2008-03-20 17:41:03 +0000
commit4ff77cc6242603b33778fe961bce7e8bf05f3f94 (patch)
treefa7be74d8430024f2e4dc4c686ddea85629b2a82
parent0cccce0c4327c5a6bc05c36263c4c474f54b6b34 (diff)
downloadredmine-4ff77cc6242603b33778fe961bce7e8bf05f3f94.tar.gz
redmine-4ff77cc6242603b33778fe961bce7e8bf05f3f94.zip
Make an issue's done_ratio field adjustable from the right-click
context menu. Uses patch from, and fixes #641. Patch by Dov Murik. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1277 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/issues/context_menu.rhtml9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/issues/context_menu.rhtml b/app/views/issues/context_menu.rhtml
index b3a03b05d..adb3960ca 100644
--- a/app/views/issues/context_menu.rhtml
+++ b/app/views/issues/context_menu.rhtml
@@ -31,6 +31,15 @@
: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 -%>