% 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 %>
<%= pagination_links_full @feedback_pages, @feedback_count, :per_page_links => false, :remote => true, :flag => true%>
<% else %>
<% end %>