<div style='width:100%;'>
<% if hadcommittedhomework(User.current.id, bid.id) %>
	<div style='width:150px; margin:10px auto;'>
	  <span class="font_color_orange" > 作业已经提交 </span>
	  <%= link_to "查看详情", project_for_bid_path(bid) %>
	</div>

<% elsif bid.reward_type==Bid::Homework && 
			bid.homework_type==Bid::HomeworkFile %>
	<%= render partial: 'projects/homeworkupload_homeworkfile', locals: {bid: bid} %>

<% elsif bid.reward_type==Bid::Homework && 
			bid.homework_type==Bid::HomeworkProject %>
	<%= render partial: 'projects/homeworkupload_homeworkproject', locals: {bid: bid} %>


<% else %>
	<div style='width:150px; margin:10px auto;'>
	  <span class="font_color_orange" > Unkown Error </span>
	  <%= link_to "我要反馈" , suggestion_send_path, target: '_blank' %>
	</div>
<% end -%>
</div>
