|
|
@ -34,7 +34,7 @@
|
|
|
|
<span class="fl mt3">
|
|
|
|
<span class="fl mt3">
|
|
|
|
<%= link_to "所有作品(<span class='c_red'>#{@stundet_works.count}</span>)".html_safe,student_work_index_path(:homework => @homework.id), :class => "fl"%>
|
|
|
|
<%= link_to "所有作品(<span class='c_red'>#{@stundet_works.count}</span>)".html_safe,student_work_index_path(:homework => @homework.id), :class => "fl"%>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<% if @is_teacher || @homework.homework_type != 1 || @homework.homework_detail_manual.comment_status == 3%>
|
|
|
|
<% if @show_all%>
|
|
|
|
<input type="text" value="<%= @name%>" placeholder="昵称、学号、姓名搜索" class="min_search ml10 fl" onkeypress="SearchByName($(this),'<%= student_work_index_path(:homework => @homework.id)%>',event);">
|
|
|
|
<input type="text" value="<%= @name%>" placeholder="昵称、学号、姓名搜索" class="min_search ml10 fl" onkeypress="SearchByName($(this),'<%= student_work_index_path(:homework => @homework.id)%>',event);">
|
|
|
|
<% end%>
|
|
|
|
<% end%>
|
|
|
|
<% if @is_teacher%>
|
|
|
|
<% if @is_teacher%>
|
|
|
@ -63,26 +63,26 @@
|
|
|
|
<span class="c_dark f14 fb fl">作品名称</span>
|
|
|
|
<span class="c_dark f14 fb fl">作品名称</span>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="w70 mr5" >
|
|
|
|
<li class="w70 mr5" >
|
|
|
|
<%= link_to "教师评分",student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name),:class => "c_dark f14 fb fl"%>
|
|
|
|
<%= link_to "教师评分",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "c_dark f14 fb fl"%>
|
|
|
|
<% if @order == "teacher_score"%>
|
|
|
|
<% if @show_all && @order == "teacher_score"%>
|
|
|
|
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
|
|
|
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
|
|
|
<% end%>
|
|
|
|
<% end%>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="w70 mr5">
|
|
|
|
<li class="w70 mr5">
|
|
|
|
<%= link_to "教辅评分",student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name),:class => "c_dark f14 fb fl"%>
|
|
|
|
<%= link_to "教辅评分",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "c_dark f14 fb fl"%>
|
|
|
|
<% if @order == "teaching_asistant_score"%>
|
|
|
|
<% if @show_all && @order == "teaching_asistant_score"%>
|
|
|
|
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
|
|
|
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
|
|
|
<% end%>
|
|
|
|
<% end%>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="w60 mr5 ml10">
|
|
|
|
<li class="w60 mr5 ml10">
|
|
|
|
<%= link_to "匿评",student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name),:class => "c_dark f14 fb fl"%>
|
|
|
|
<%= link_to "匿评",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "c_dark f14 fb fl"%>
|
|
|
|
<% if @order == "student_score"%>
|
|
|
|
<% if @show_all && @order == "student_score"%>
|
|
|
|
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
|
|
|
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
|
|
|
<% end%>
|
|
|
|
<% end%>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="w40 ml10" id="final_sort">
|
|
|
|
<li class="w40 ml10" id="final_sort">
|
|
|
|
<%= link_to "成绩",student_work_index_path(:homework => @homework.id,:order => "final_score", :sort => @score, :name => @name),:class => "c_dark f14 fb fl"%>
|
|
|
|
<%= link_to "成绩",@show_all ? student_work_index_path(:homework => @homework.id,:order => "final_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "c_dark f14 fb fl"%>
|
|
|
|
<% if @order == "final_score"%>
|
|
|
|
<% if @show_all && @order == "final_score"%>
|
|
|
|
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
|
|
|
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
|
|
|
<% end%>
|
|
|
|
<% end%>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|