Add target version to the issue list context menu.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1564 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
fda7bcdfb6
commit
0870f6267f
|
@ -20,6 +20,19 @@
|
|||
<% 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>
|
||||
|
|
Loading…
Reference in New Issue