|
|
|
@ -14,7 +14,11 @@
|
|
|
|
|
<!--<input name="checkbox2" type="checkbox" value="" class="resourcesCheckbox" />-->
|
|
|
|
|
</li>
|
|
|
|
|
<li class="resource-list-name fl">
|
|
|
|
|
<% if attach.is_public == 0 && attach.get_apply_resource_status(attach.id, attach.author_id) != 2 %>
|
|
|
|
|
<a href="" style="cursor: default" class = "resourcesBlack resource-list-middle hidden mw280" title="<%= attach.filename %>"><%= attach.filename %> </a>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to truncate(attach.filename, :length => 30), download_named_attachment_path(attach.id, attach.filename), :title => attach.filename, :class => 'resourcesBlack resource-list-middle hidden mw280' %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if attach.is_public == 0 && (@type == "6" || @type == "2") && attach.author != User.current %>
|
|
|
|
|
<img src="/images/locked.png" alt="私有" title="私有" class="resource-list-middle" height="16" width="16">
|
|
|
|
|
<% end %>
|
|
|
|
|