From dfc0e56a570ef727159c6ad72f251d16a2b9e639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Fri, 19 Jul 2019 10:40:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=A1=88=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/libraries/_library_list.html.erb | 18 ++-- app/views/libraries/index.html.erb | 106 ++++++++++----------- 2 files changed, 62 insertions(+), 62 deletions(-) diff --git a/app/views/libraries/_library_list.html.erb b/app/views/libraries/_library_list.html.erb index fc0e6e62..b5551966 100644 --- a/app/views/libraries/_library_list.html.erb +++ b/app/views/libraries/_library_list.html.erb @@ -9,24 +9,24 @@ <%= link_to library.title, library_path(library),:class => "task-hide font-22 library_l_name" %> <%= show_library_tags(library, class: 'mt10 ml10') %> - <% if params[:type] == 'mine' %> - 上传时间:<%= library.created_at.strftime('%Y-%m-%d %H:%M') %> - <% else %> - 发布时间:<%= library.published_at.try(:strftime, '%Y-%m-%d %H:%M') %> - <% end %> + <%# if params[:type] == 'mine' %> + + <%# else %> + + <%# end %>
- 作者: + <%= library.author_name %> <%= library.author_school_name %> - <% download_count = @download_count_map.try(:fetch, library.id, 0) || library.attachments.count %> <% if download_count.nonzero? %> - <%= library.visited_count || 0 %> 浏览 + <%= download_count %> 下载 <% end %> <% if library.praise_tread_cache.try(:praise_num).to_i.nonzero? %> - <%= download_count %> 下载 + <%= library.praise_tread_cache.try(:praise_num) %> 赞 <% end %> + <%= library.praise_tread_cache.try(:praise_num) %> 赞 <%= library.visited_count || 0 %> 浏览
diff --git a/app/views/libraries/index.html.erb b/app/views/libraries/index.html.erb index 087ae03c..9c1462c0 100644 --- a/app/views/libraries/index.html.erb +++ b/app/views/libraries/index.html.erb @@ -1,54 +1,54 @@ -- 教学案例 - <%= link_to '发布案例', new_library_path, class: 'white-btn edu-filter-btn-blue fr mr10 mt8', style: 'color: #4CACFF' %> -
- -