学生的试卷列表,无需显示“已发布”标识,因为没有发布的试卷,学生是看不到的

This commit is contained in:
cxt 2017-02-06 11:18:34 +08:00
parent 2b49a6f7a1
commit 47c634cc99
1 changed files with 1 additions and 5 deletions

View File

@ -55,11 +55,7 @@
<% eu = ExerciseUser.where("exercise_id=? and user_id=? and status=?",exercise.id, User.current.id, true).first %>
<div>
<%= link_to (index.to_i+1).to_s+". "+exercise_name, exercise_path(exercise.id), :title => "#{exercise_name}", :class => "polls_title polls_title_st fl c_dblue "%>
<% if exercise.exercise_status == 1 %>
<span class="exercise_status_nop fl"></span>
<% elsif exercise.exercise_status == 2 %>
<span class="exercise_status_pub fl"></span>
<% else %>
<% if exercise.exercise_status == 3 %>
<span class="exercise_status_end fl"></span>
<% end%>
<% if eu && exercise.end_time >= eu.created_at %>