summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-07-25 09:38:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-07-25 09:38:54 +0000
commit379c0a1dd43c1c25faba5a0a1dea40f63384a010 (patch)
treea788a1c678379be34136e3ee20a58d285c128e39 /app
parentfe63eefc1f4a5c7c5823b0939f87f4433ef0f999 (diff)
downloadredmine-379c0a1dd43c1c25faba5a0a1dea40f63384a010.tar.gz
redmine-379c0a1dd43c1c25faba5a0a1dea40f63384a010.zip
Disable priority (#5925) and progress in context menu for parent issues.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3869 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/issues/context_menu.rhtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/issues/context_menu.rhtml b/app/views/issues/context_menu.rhtml
index e8d67ce41..858f3b2e6 100644
--- a/app/views/issues/context_menu.rhtml
+++ b/app/views/issues/context_menu.rhtml
@@ -34,7 +34,7 @@
<ul>
<% @priorities.each do |p| -%>
<li><%= context_menu_link p.name, {:controller => 'issues', :action => 'bulk_edit', :ids => @issues.collect(&:id), :issue => {'priority_id' => p}, :back_url => @back}, :method => :post,
- :selected => (@issue && p == @issue.priority), :disabled => !@can[:edit] %></li>
+ :selected => (@issue && p == @issue.priority), :disabled => (!@can[:edit] || !@issue.leaf?) %></li>
<% end -%>
</ul>
</li>
@@ -83,7 +83,7 @@
<ul>
<% (0..10).map{|x|x*10}.each do |p| -%>
<li><%= context_menu_link "#{p}%", {:controller => 'issues', :action => 'bulk_edit', :ids => @issues.collect(&:id), :issue => {'done_ratio' => p}, :back_url => @back}, :method => :post,
- :selected => (@issue && p == @issue.done_ratio), :disabled => !@can[:edit] %></li>
+ :selected => (@issue && p == @issue.done_ratio), :disabled => (!@can[:edit] || !@issue.leaf?) %></li>
<% end -%>
</ul>
</li>