diff --git a/app/helpers/libraries_helper.rb b/app/helpers/libraries_helper.rb index e2e74324..60beab53 100644 --- a/app/helpers/libraries_helper.rb +++ b/app/helpers/libraries_helper.rb @@ -2,7 +2,7 @@ module LibrariesHelper def show_library_tags(library) html = '' library.library_tags.each do |tag| - html += content_tag(:span, tag.name, class: "edu-filter-btn fl cdefault mt3 ml10 #{library_tag_class(tag)}") + html += content_tag(:span, tag.name, class: "edu-filter-btn fl cdefault mt10 ml10 #{library_tag_class(tag)}") end raw html diff --git a/app/views/libraries/_library_list.html.erb b/app/views/libraries/_library_list.html.erb index 7ae5031c..21e96536 100644 --- a/app/views/libraries/_library_list.html.erb +++ b/app/views/libraries/_library_list.html.erb @@ -2,21 +2,25 @@ <% if @libraries.present? %> <% @libraries.each do |library| %>
- <%= link_to library.title, library_path(library),:class => "task-hide font-16 library_l_name" %> +
+ <%= link_to library.title, library_path(library),:class => "task-hide font-22 library_l_name" %> <%= show_library_tags(library) %> -
-- <%= link_to library.user.show_real_name, user_path(library.user) %> - <%= library.visited_count || 0 %> 浏览 <% 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 %>
++ 作者: + <%= link_to library.user.show_real_name, user_path(library.user) %> + 学校 + + <%= library.visited_count || 0 %> 浏览 + <%= library.visited_count || 0 %> 下载 + <%= library.visited_count || 0 %> 赞