匿评作业作品列表显示

sw_new_course
sw 10 years ago
parent 7ada5db28e
commit dc01b90dbd

@ -29,8 +29,12 @@
<% end%> <% end%>
</li> </li>
<li class="mr5 ml10 w40"> <li class="ml15 w40">
<%= link_to "匿评",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl"%> <% if @homework.homework_type == 1%>
<%= link_to "匿评",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl"%>
<% elsif @homework.homework_type == 2%>
<%= link_to "系统",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl"%>
<% end %>
<% if @show_all && @order == "student_score"%> <% if @show_all && @order == "student_score"%>
<%= link_to "", student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name) ,:class => @score == 'desc' ? 'st_up' : 'st_down'%> <%= link_to "", student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name) ,:class => @score == 'desc' ? 'st_up' : 'st_down'%>
<% end%> <% end%>

@ -89,7 +89,7 @@
<div id="about_hwork_<%= student_work.id%>" ></div> <div id="about_hwork_<%= student_work.id%>" ></div>
<% end%> <% end%>
<% else %> <% else %>
<% if @homework.homework_type == 1%> <% if @homework.homework_type == 1 || @homework.homework_type == 2%>
<ul class="hwork_ul"> <ul class="hwork_ul">
<%= render :partial => 'evaluation_student_work_title'%> <%= render :partial => 'evaluation_student_work_title'%>
</ul><!---hwork_ul end--> </ul><!---hwork_ul end-->

Loading…
Cancel
Save