<% if curse_attachments.count != 0 %> <% curse_attachments.each do |file| %> <% if file.is_public? || User.current.member_of_course?(course) || User.current.admin? %>
<%=render :partial=>'files/resource_detail',:locals => {:file => file} %>
<% else %>
<%= file.filename %>是私有资源
<% end %> <% end %> <% else %>

没有数据可以显示!

<% end %>