Patch #641 ยป patch_add_done_ratio_to_context_menu.diff
app/views/issues/context_menu.rhtml (working copy) | ||
---|---|---|
31 | 31 |
:selected => @issue.assigned_to.nil?, :disabled => !@can[:update] %></li> |
32 | 32 |
</ul> |
33 | 33 |
</li> |
34 |
<li class="folder"> |
|
35 |
<a href="#" class="submenu"><%= l(:field_done_ratio) %></a> |
|
36 |
<ul> |
|
37 |
<% (0..10).map{|x|x*10}.each do |p| -%> |
|
38 |
<li><%= context_menu_link "#{p.to_s}%", {:controller => 'issues', :action => 'edit', :id => @issue, 'issue[done_ratio]' => p, :back_to => back_to}, :method => :post, |
|
39 |
:selected => (p == @issue.done_ratio), :disabled => !@can[:edit] %></li> |
|
40 |
<% end -%> |
|
41 |
</ul> |
|
42 |
</li> |
|
34 | 43 |
<li><%= context_menu_link l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue}, |
35 | 44 |
:class => 'icon-copy', :disabled => !@can[:copy] %></li> |
36 | 45 |
<% else -%> |