公共资源、私有资源请求分享界面及样式
This commit is contained in:
parent
07678e367e
commit
615d0ddbd2
|
@ -11,9 +11,17 @@
|
||||||
</li>
|
</li>
|
||||||
<li class="resource-list-name fl">
|
<li class="resource-list-name fl">
|
||||||
<%= 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' %>
|
<%= 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' %>
|
||||||
<img src="/images/locked.png" alt="私有" title="私有" class="resource-list-middle" height="16" width="16">
|
<% if attach.is_public == 0 && @type == "6" %>
|
||||||
|
<img src="/images/locked.png" alt="私有" title="私有" class="resource-list-middle" height="16" width="16">
|
||||||
|
<% end %>
|
||||||
|
</li>
|
||||||
|
<li class="resource-list-apply fr">
|
||||||
|
<% if attach.is_public == 0 && @type == "6" %>
|
||||||
|
<a href="javascript:void(0);" class="green_btn_share c_white" data-remote="true">请求分享</a>
|
||||||
|
<% else %>
|
||||||
|
--
|
||||||
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<li class="resource-list-apply fr"><a href="javascript:void(0);" class="green_btn_share c_white" data-remote="true">请求分享</a></li>
|
|
||||||
<li class="resource-list-time fr"><%= format_date(attach.created_on) %></li>
|
<li class="resource-list-time fr"><%= format_date(attach.created_on) %></li>
|
||||||
<li class="resource-list-quote fr"><%= attach.quotes.nil? ? 0 : attach.quotes %></li>
|
<li class="resource-list-quote fr"><%= attach.quotes.nil? ? 0 : attach.quotes %></li>
|
||||||
<li class="resource-list-download fr"><%= attach.downloads %></li>
|
<li class="resource-list-download fr"><%= attach.downloads %></li>
|
||||||
|
|
Loading…
Reference in New Issue