parent
8a3a0af20f
commit
43363e8bcb
@ -0,0 +1,54 @@
|
||||
<div class="project_r_h">
|
||||
<h2 class="project_h2">
|
||||
缺评情况
|
||||
</h2>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
|
||||
<div class="st_box">
|
||||
<ul class="st_box_top">
|
||||
<li class="ml10" style="padding-right: 15px;">
|
||||
<a href="javascript:void(0)">学号</a>
|
||||
</li>
|
||||
<li class="ml90" style="padding-right: 5px;">
|
||||
<a href="javascript:void(0)">姓名</a>
|
||||
</li>
|
||||
<li class="ml320">
|
||||
<a href="javascript:void(0)">应评</a>
|
||||
</li>
|
||||
<li class="ml30">
|
||||
<a href="javascript:void(0)">实评</a>
|
||||
</li>
|
||||
<li class="ml30">
|
||||
<a href="javascript:void(0)">缺评</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="cl"></div><!--st_box_top end-->
|
||||
|
||||
<% @stundet_works.each do |student_work|%>
|
||||
<ul class="hwork_ul <%= cycle("b_grey", "") %>" id="student_work_<%= student_work.id%>">
|
||||
<li class="hwork_num_ab mr10 ml10">
|
||||
<span>
|
||||
<%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>
|
||||
</span>
|
||||
</li>
|
||||
<li class=" hwork_name_ab ">
|
||||
<%= link_to student_work.user.show_name,user_path(student_work.user),:title => student_work.user.show_name, :class => "c_blue02"%>
|
||||
</li>
|
||||
<%
|
||||
all_count = all_evaluation_count student_work.user,@homework
|
||||
has_count = has_evaluation_count student_work.user,@homework
|
||||
absence = all_count - has_count
|
||||
%>
|
||||
<li class="absence c_grey">
|
||||
<%= all_count%>
|
||||
</li>
|
||||
<li class="absence c_grey">
|
||||
<%= has_count%>
|
||||
</li>
|
||||
<li class="absence <%= absence == 0 ? 'c_green' : 'c_red'%>">
|
||||
<%= absence%>
|
||||
</li>
|
||||
</ul>
|
||||
<% end%>
|
||||
</div>
|
Loading…
Reference in new issue