|
|
@ -24,7 +24,7 @@
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="resource-list-apply fr" id="resource_apply_status_<%=attach.id %>">
|
|
|
|
<li class="resource-list-apply fr" id="resource_apply_status_<%=attach.id %>">
|
|
|
|
<% if attach.is_public == 0 && (@type == "6" || @type == "2") && attach.author != User.current %>
|
|
|
|
<% if attach.is_public == 0 && (@type == "6" || @type == "2") && attach.author != User.current && !attach_show_allow(attach) %>
|
|
|
|
<% ah = attach.get_status_by_attach(User.current.id) %>
|
|
|
|
<% ah = attach.get_status_by_attach(User.current.id) %>
|
|
|
|
<% if ah.nil? %>
|
|
|
|
<% if ah.nil? %>
|
|
|
|
<%= link_to("请求分享", apply_resource_user_path(User.current.id, :attachment_id => attach.id), :class => 'green_btn_share c_white', :remote => true) %>
|
|
|
|
<%= link_to("请求分享", apply_resource_user_path(User.current.id, :attachment_id => attach.id), :class => 'green_btn_share c_white', :remote => true) %>
|
|
|
|