|
|
|
@ -45,7 +45,13 @@
|
|
|
|
|
<% if User.current.logged? && is_cur_course_student(@course) %>
|
|
|
|
|
<% cur_user_homework = cur_user_homework_for_bid(bid) %>
|
|
|
|
|
<% if cur_user_homework!= nil && cur_user_homework.empty? %>
|
|
|
|
|
<%= link_to l(:label_commit_homework),new_exercise_book_path(bid) %>
|
|
|
|
|
<% if bid.comment_status == 0 || bid.comment_status == 2%>
|
|
|
|
|
<%= link_to l(:label_commit_homework),new_exercise_book_path(bid) %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<span title="匿评阶段不可提交作业!">
|
|
|
|
|
<%= l(:label_commit_homework)%>
|
|
|
|
|
</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<span style="color: green; float: right">
|
|
|
|
|
<%= l(:lable_has_commit_homework)%>
|
|
|
|
|