2017-02-13 15:58:33 +08:00
|
|
|
<% if curse_attachments.count != 0 %>
|
|
|
|
<% curse_attachments.each do |file| %>
|
|
|
|
<% if file.is_public? || User.current.member_of_course?(course) || User.current.admin? %>
|
|
|
|
<div id="resource_detail_<%=file.id %>">
|
|
|
|
<%=render :partial=>'files/resource_detail',:locals => {:file => file} %>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<div class="re_con_box"><span class='fr mr10 pr_join_span '><%= file.filename %>是私有资源</span></div>
|
|
|
|
<% end %>
|
2016-08-12 17:05:46 +08:00
|
|
|
<% end %>
|
|
|
|
|
2017-02-13 15:58:33 +08:00
|
|
|
<ul class="wlist">
|
|
|
|
<%= pagination_links_full @feedback_pages, @feedback_count, :per_page_links => false, :remote => true, :flag => true%>
|
|
|
|
</ul>
|
|
|
|
<% else %>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div style="background-color: #fff; height: 400px;">
|
|
|
|
<div class="icons_tishi" style="margin-top: 10px; padding-top: 125px;"><img src="/images/sy/icons_smile.png" width="110" height="110" alt="" ></div>
|
|
|
|
<p class="sy_tab_con_p">没有数据可以显示!</p>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2015-12-31 11:12:00 +08:00
|
|
|
|