|
|
|
@ -2,21 +2,25 @@
|
|
|
|
|
<% if @libraries.present? %>
|
|
|
|
|
<% @libraries.each do |library| %>
|
|
|
|
|
<li class="library_list_item">
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(library.user), width: 50, height: 50, class: 'radius mr15 mt3'), user_path(library.user) %>
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(library.user), width: 120, height: 90, class: ' mr15 mt3'), user_path(library.user) %>
|
|
|
|
|
<div class="flex1">
|
|
|
|
|
<p class="clearfix mb15 lineh-20">
|
|
|
|
|
<%= link_to library.title, library_path(library),:class => "task-hide font-16 library_l_name" %>
|
|
|
|
|
<p class="clearfix mb15 lineh-40 mt10">
|
|
|
|
|
<%= link_to library.title, library_path(library),:class => "task-hide font-22 library_l_name" %>
|
|
|
|
|
<%= show_library_tags(library) %>
|
|
|
|
|
</p>
|
|
|
|
|
<p class="clearfix lineh-20">
|
|
|
|
|
<span class="color-grey-3 mr20"><%= link_to library.user.show_real_name, user_path(library.user) %></span>
|
|
|
|
|
<span class="color-grey-c mr20"><%= library.visited_count || 0 %> 浏览</span>
|
|
|
|
|
<% if params[:type] == 'mine' %>
|
|
|
|
|
<span class="color-grey-c mr20">上传时间:<%= library.created_at.strftime('%Y-%m-%d %H:%M') %></span>
|
|
|
|
|
<% else %>
|
|
|
|
|
<span class="color-grey-c mr20">发布时间:<%= library.published_at.try(:strftime, '%Y-%m-%d %H:%M') %></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</p>
|
|
|
|
|
<p class="clearfix lineh-20">
|
|
|
|
|
<span class="color-grey-c">作者:</span>
|
|
|
|
|
<span class="color-grey-3 mr10"><%= link_to library.user.show_real_name, user_path(library.user) %></span>
|
|
|
|
|
<span class="color-grey-3 mr20">学校</span>
|
|
|
|
|
<span class="color-grey-c mr20"><span class=" item-group-icon mr5"><i class="fa fa-eye"></i></span><%= library.visited_count || 0 %> 浏览</span>
|
|
|
|
|
<span class="color-grey-c mr20"><span class=" item-group-icon mr5"><i class="fa fa-download"></i></span><%= library.visited_count || 0 %> 下载</span>
|
|
|
|
|
<span class="color-grey-c mr20"><span class=" item-group-icon mr5"><i class="fa fa-thumbs-o-up"></i></span><%= library.visited_count || 0 %> 赞</span>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|