<%= render_flash_messages %> <% if @bid.reward_type == 3 %> <% unless User.current.nil?%> <% if User.current.user_extensions.identity == 1 %>

<%= l(:label_homework_prompt) %>

<%= l(:label_homework_prompt_content) %>

<% end %> <% end %>
<%= l(:label_homework_project) %>(<%= bidding_project.count%>) <% if User.current.logged? && (!Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.roles&Role.where('id = ? or id = ?', 5, 7)).size >0) %>
<%= toggle_link l(:label_commit_homework), 'put-bid-form' %>
<% end %>
<% else %> <% if User.current.logged? %> <% end %>
<%= l(:label_bidding_project) %>(<%= bidding_project.count%>)
<%= toggle_link l(:button_bidding), 'put-bid-form' %>
<% end %> <%= render :partial=> "list_projects",:locals => {:bidding_project => bidding_project,:bid => @bid }%>