diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-28 18:00:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-28 18:00:30 +0000 |
commit | c3f9575eaf05c2729161bcd7880544dd0777891c (patch) | |
tree | dfa76b34f688d40a11bb5924c645e033d6f8378b /app | |
parent | 198a8c602dc164186972d0b53064c8086c8ef2ec (diff) | |
download | redmine-c3f9575eaf05c2729161bcd7880544dd0777891c.tar.gz redmine-c3f9575eaf05c2729161bcd7880544dd0777891c.zip |
Adds category to the issue context menu (#1684).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1707 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/issues/context_menu.rhtml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/issues/context_menu.rhtml b/app/views/issues/context_menu.rhtml index af56782e8..0cdcd4733 100644 --- a/app/views/issues/context_menu.rhtml +++ b/app/views/issues/context_menu.rhtml @@ -44,6 +44,19 @@ :selected => @issue.assigned_to.nil?, :disabled => !@can[:update] %></li> </ul> </li> + <% unless @project.issue_categories.empty? -%> + <li class="folder"> + <a href="#" class="submenu"><%= l(:field_category) %></a> + <ul> + <% @project.issue_categories.each do |u| -%> + <li><%= context_menu_link u.name, {:controller => 'issues', :action => 'edit', :id => @issue, 'issue[category_id]' => u, :back_to => @back}, :method => :post, + :selected => (u == @issue.category), :disabled => !@can[:update] %></li> + <% end -%> + <li><%= context_menu_link l(:label_none), {:controller => 'issues', :action => 'edit', :id => @issue, 'issue[category_id]' => '', :back_to => @back}, :method => :post, + :selected => @issue.category.nil?, :disabled => !@can[:update] %></li> + </ul> + </li> + <% end -%> <li class="folder"> <a href="#" class="submenu"><%= l(:field_done_ratio) %></a> <ul> |