课程首页公开资料数显示错误

This commit is contained in:
sw 2015-05-29 18:11:31 +08:00
parent a924ab5fac
commit 8dd6bb4afa
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@
<%= link_to course.school.name.try(:gsub, /(.+)$/, '\1'), options={:action => 'course', :school_id => course.school.id}, html_options={:method => 'get'} %>
<% end %>
(<%= course.members.count %>人)
<% files_count = course.attachments.count %>
<% files_count = visable_attachemnts_incourse(course).count %>
<% if files_count > 0%>
(<%= link_to "#{files_count.to_s}份", course_files_path(course) %>公开资料)
<% end %>