<% if @members.count != 0 %> <% boo = !(User.current.allowed_to?(:as_teacher,@course) || User.current.admin?) && course_has_score_open_common_homework(@course) %> <% @members.each do |member| %> <% is_hidden = boo && User.current.id != member.user_id %> <% end %>
姓名 <%= link_to '已交作品', course_statistics_course_path(@course, :tab => 2, :type => 'committed_work_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%> <% if @type == "committed_work_num" && @order == 'desc' %> <% elsif @type == "committed_work_num" && @order == 'asc' %> <% end %> <%= link_to '未交作品', course_statistics_course_path(@course, :tab => 2, :type => 'un_commit_work_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%> <% if @type == "un_commit_work_num" && @order == 'desc' %> <% elsif @type == "un_commit_work_num" && @order == 'asc' %> <% end %> <%= link_to '迟交作品', course_statistics_course_path(@course, :tab => 2, :type => 'late_commit_work_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%> <% if @type == "late_commit_work_num" && @order == 'desc' %> <% elsif @type == "late_commit_work_num" && @order == 'asc' %> <% end %> <%= link_to '匿评缺评', course_statistics_course_path(@course, :tab => 2, :type => 'absence_evaluation_work_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%> <% if @type == "absence_evaluation_work_num" && @order == 'desc' %> <% elsif @type == "absence_evaluation_work_num" && @order == 'asc' %> <% end %> <%= link_to '被申诉', course_statistics_course_path(@course, :tab => 2, :type => 'appeal_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%> <% if @type == "appeal_num" && @order == 'desc' %> <% elsif @type == "appeal_num" && @order == 'asc' %> <% end %> <%= link_to '平均分', course_statistics_course_path(@course, :tab => 2, :type => 'average_score', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%> <% if @type == "average_score" && @order == 'desc' %> <% elsif @type == "average_score" && @order == 'asc' %> <% end %> <%= link_to '英雄榜', course_statistics_course_path(@course, :tab => 2, :type => 'total_score', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%> <% if @type == "total_score" && @order == 'desc' %> <% elsif @type == "total_score" && @order == 'asc' %> <% end %>
<%= link_to member.user.show_name, user_path(member.user), :class => 'course_class_users_st_name' %> <%= member.committed_work_num %> <%= member.un_commit_work_num %> <%= member.late_commit_work_num %> <%= member.absence_evaluation_work_num %> <%= member.appeal_num %> <%= is_hidden ? '**' : (member.average_score.nil? ? 0 : format("%.1f", member.average_score < 0 ? 0 : member.average_score)) %> <%= is_hidden ? '**' : (member.total_score.nil? ? 0 : format("%.1f", member.total_score < 0 ? 0 : member.total_score)) %>
<% else%>

没有数据可以显示!

<% end %>