socialforge/app/views/projects/_homeworkupload.html.erb

24 lines
824 B
Plaintext
Raw Normal View History

<div style='width:100%;'>
2014-04-08 14:53:11 +08:00
<% 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} %>
2014-04-08 14:53:11 +08:00
<% 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>