班级活跃度个数为0时不显示

This commit is contained in:
cxt 2016-11-29 11:03:05 +08:00
parent 4c45518913
commit 896f8a2ac7
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
<% unless contributor_course_scor(course.id).count == 0 %>
<% count = contributor_course_scor(course.id).select{|ccs| ccs.con_score != 0 && !ccs.con_score.nil?}.count %>
<% unless count == 0 %>
<div>
<ul class="rankList">
<h3 style="font-size: 14px; font-weight: normal;">