<% 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 %>