2016-08-12 17:05:46 +08:00
|
|
|
<% curse_attachments.each do |file| %>
|
|
|
|
<% if file.is_public? || User.current.member_of_course?(course) || User.current.admin? %>
|
2016-02-23 11:04:19 +08:00
|
|
|
<div id="resource_detail_<%=file.id %>">
|
2016-08-12 17:05:46 +08:00
|
|
|
<%=render :partial=>'files/resource_detail',:locals => {:file => file} %>
|
2016-02-23 11:04:19 +08:00
|
|
|
</div>
|
2016-01-08 18:03:59 +08:00
|
|
|
<% else %>
|
2016-08-12 17:05:46 +08:00
|
|
|
<div class="re_con_box"><span class='fr mr10 pr_join_span '><%= file.filename %>是私有资源</span></div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<ul class="wlist">
|
|
|
|
<%= pagination_links_full @feedback_pages, @feedback_count, :per_page_links => false, :remote => true, :flag => true%>
|
|
|
|
</ul>
|
2015-12-31 11:12:00 +08:00
|
|
|
|