|
|
|
@ -11,18 +11,35 @@
|
|
|
|
|
TO
|
|
|
|
|
<%= link_to homework_common.course.name, course_path(homework_common.course_id), :class => "newsBlue ml15"%>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="homepagePostTitle hidden">
|
|
|
|
|
<span class="homepagePostTitle hidden m_w530 fl">
|
|
|
|
|
<%= link_to homework_common.name,student_work_index_path(:homework => homework_common.id),:class => "postGrey"%>
|
|
|
|
|
</div>
|
|
|
|
|
</span>
|
|
|
|
|
<% if homework_common.homework_detail_manual.comment_status == 1%>
|
|
|
|
|
<span class="grey_btn_cir ml10">未开启匿评</span>
|
|
|
|
|
<% elsif homework_common.homework_detail_manual.comment_status == 2%>
|
|
|
|
|
<span class="green_btn_cir ml10">匿评中</span>
|
|
|
|
|
<% elsif homework_common.homework_detail_manual.comment_status == 3%>
|
|
|
|
|
<span class="grey_btn_cir ml10">匿评已结束</span>
|
|
|
|
|
<% end%>
|
|
|
|
|
|
|
|
|
|
<div class="homepagePostSubmitContainer">
|
|
|
|
|
<div class="homepagePostSubmit">
|
|
|
|
|
<%= user_for_homework_common homework_common,is_teacher %>
|
|
|
|
|
</div>
|
|
|
|
|
<% if homework_common.homework_type == 2 && is_teacher%>
|
|
|
|
|
<div class="homepagePostSubmit">
|
|
|
|
|
<%= link_to "模拟答题", new_user_commit_homework_users_path(homework_id: homework_common.id, is_test: true), class: 'c_blue test-program-btn', title: '教师可以通过模拟答题设置作业的标准答案' %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="homepagePostSubmit">
|
|
|
|
|
<%= link_to "模拟答题", new_user_commit_homework_users_path(homework_id: homework_common.id, is_test: true), class: 'c_blue test-program-btn', title: '教师可以通过模拟答题设置作业的标准答案' %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if homework_common.homework_type == 2%>
|
|
|
|
|
<div class="homepagePostDeadline mr15">
|
|
|
|
|
语言:
|
|
|
|
|
<% if homework_common.homework_detail_programing.language.to_i == 1%>
|
|
|
|
|
C
|
|
|
|
|
<% elsif homework_common.homework_detail_programing.language.to_i == 2%>
|
|
|
|
|
C++
|
|
|
|
|
<% end%>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="homepagePostDeadline">
|
|
|
|
|
<%= l(:label_end_time)%>:<%= homework_common.end_time%>
|
|
|
|
|