Patch #28168 ยป 0001-Allow-context-menu-edit-of-done-and-priority-of-pare.patch
app/views/context_menus/issues.html.erb | ||
---|---|---|
39 | 39 |
<ul> |
40 | 40 |
<% @priorities.each do |p| -%> |
41 | 41 |
<li><%= context_menu_link p.name, bulk_update_issues_path(:ids => @issue_ids, :issue => {'priority_id' => p}, :back_url => @back), :method => :post, |
42 |
:selected => (@issue && p == @issue.priority), :disabled => (!@can[:edit]) %></li> |
|
42 |
:selected => (@issue && p == @issue.priority), :disabled => (!@can[:edit] || @issues.any?(&:priority_derived?)) %></li>
|
|
43 | 43 |
<% end -%> |
44 | 44 |
</ul> |
45 | 45 |
</li> |
... | ... | |
97 | 97 |
<ul> |
98 | 98 |
<% (0..10).map{|x|x*10}.each do |p| -%> |
99 | 99 |
<li><%= context_menu_link "#{p}%", bulk_update_issues_path(:ids => @issue_ids, :issue => {'done_ratio' => p}, :back_url => @back), :method => :post, |
100 |
:selected => (@issue && p == @issue.done_ratio), :disabled => (!@can[:edit] || @issues.detect {|i| !i.leaf?}) %></li>
|
|
100 |
:selected => (@issue && p == @issue.done_ratio), :disabled => (!@can[:edit] || @issues.any?(&:done_ratio_derived?)) %></li>
|
|
101 | 101 |
<% end -%> |
102 | 102 |
</ul> |
103 | 103 |
</li> |