% if not project.nil? and project.module_enabled? :costs_module %>
<%
cost_objects_any = false
possible_cost_objects = issues.inject(issues.first.project.cost_objects) do |intersect, issue|
cost_objects_any |= issue.project.cost_objects.any?
issue.project.cost_objects & intersect
end
%>
<% unless possible_cost_objects.empty? -%>
<% possible_cost_objects.each do |co| -%>
-
<%= context_menu_link co.subject, {:controller => 'issues', :action => 'bulk_edit', :ids => issues.collect(&:id), 'cost_object_id' => co, :back_url => back}, :method => :post,
:selected => (@issue && co == @issue.cost_object), :disabled => !can[:edit] %>
<% end -%>
<% else -%>
- <%= l(cost_objects_any ? :notice_cost_object_conflict : :notice_no_cost_objects_available)%>
<% end -%>
<% end %>