% content_for :top_field do%> <%= render 'search_bar' %> 找到约 <%= number_with_delimiter(@result_all_count, delimiter:',') %> 条结果 <% end %> <% @searched_attach.each do |result| %>
<%= result.filename %>
<%= link_to_attachment result, {:download => true, :text => image_tag("/images/button/dl.png", width: "70px", alt: l(:button_download), :class => 'download_icon')}%>
<%= result.description %>
所属分类:<%=result_come_from result%>
下载:<%= result.downloads%>|
大小:<%= number_to_human_size(result.filesize) %>|
共享者:<%= link_to result.author, user_path(result.author), target: "_blank" unless result.author.blank? %>|
上传时间:<%= format_time(result.created_on) %>
|