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
This commit is contained in:
parent
0cccce0c43
commit
4ff77cc624
|
@ -31,6 +31,15 @@
|
||||||
:selected => @issue.assigned_to.nil?, :disabled => !@can[:update] %></li>
|
:selected => @issue.assigned_to.nil?, :disabled => !@can[:update] %></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</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},
|
<li><%= context_menu_link l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue},
|
||||||
:class => 'icon-copy', :disabled => !@can[:copy] %></li>
|
:class => 'icon-copy', :disabled => !@can[:copy] %></li>
|
||||||
<% else -%>
|
<% else -%>
|
||||||
|
|
Loading…
Reference in New Issue