]> source.dussan.org Git - redmine.git/commitdiff
Add target version to the issue list context menu.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 18 Jun 2008 20:15:51 +0000 (20:15 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 18 Jun 2008 20:15:51 +0000 (20:15 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1564 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/context_menu.rhtml

index 04c21ceae0e9caac94bc3994772760b95d324f6b..69a5ec02a655335afcc3e61e3fdb43c7cb75bc19 100644 (file)
                <% end -%>
                </ul>
        </li>
+       <% unless @project.versions.empty? -%>
+       <li class="folder">                     
+               <a href="#" class="submenu"><%= l(:field_fixed_version) %></a>
+               <ul>
+               <% @project.versions.sort.each do |v| -%>
+                   <li><%= context_menu_link v.name, {:controller => 'issues', :action => 'edit', :id => @issue, 'issue[fixed_version_id]' => v, :back_to => @back}, :method => :post,
+                                             :selected => (v == @issue.fixed_version), :disabled => !@can[:update] %></li>
+               <% end -%>
+                   <li><%= context_menu_link l(:label_none), {:controller => 'issues', :action => 'edit', :id => @issue, 'issue[fixed_version_id]' => '', :back_to => @back}, :method => :post,
+                                             :selected => @issue.fixed_version.nil?, :disabled => !@can[:update] %></li>
+               </ul>
+       </li>
+       <% end %>
        <li class="folder">                     
                <a href="#" class="submenu"><%= l(:field_assigned_to) %></a>
                <ul>