diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-21 17:32:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-21 17:32:15 +0000 |
commit | bbf422e22933c286e0779e51fd0cc797f339e134 (patch) | |
tree | b484b51715fc5c7d56a03d1665119f3d8210978f | |
parent | 8ed97f43d2dbef9e64f474d584861b3aae8253b7 (diff) | |
download | redmine-bbf422e22933c286e0779e51fd0cc797f339e134.tar.gz redmine-bbf422e22933c286e0779e51fd0cc797f339e134.zip |
Add done_ratio to the right-click context menu.
Closes #904 (back_to variable used in patch #641 and in r1277 is no longer defined).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1279 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/issues/context_menu.rhtml | 9 |
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..f42f254e8 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}%", {:controller => 'issues', :action => 'edit', :id => @issue, 'issue[done_ratio]' => p, :back_to => @back}, :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 -%> |