diff --git a/app/views/libraries/_form.html.erb b/app/views/libraries/_form.html.erb index 4ce076d2..6479eb8d 100644 --- a/app/views/libraries/_form.html.erb +++ b/app/views/libraries/_form.html.erb @@ -12,7 +12,6 @@ 简明扼要介绍文档/视频所包含的主要的内容 -
请输入描述内容
\ No newline at end of file diff --git a/app/views/libraries/_library_list.html.erb b/app/views/libraries/_library_list.html.erb index 63314d65..227293ca 100644 --- a/app/views/libraries/_library_list.html.erb +++ b/app/views/libraries/_library_list.html.erb @@ -4,7 +4,11 @@
<%= link_to library.title, library_path(library) %>
++ <%= link_to library.title, library_path(library),:class => "task-hide font-16 library_l_name" %> + 入库案例 + 优秀案例 +
<%= link_to library.user.show_real_name, user_path(library.user) %> <%= library.visited_count || 0 %> 浏览 diff --git a/app/views/libraries/show.html.erb b/app/views/libraries/show.html.erb index 03ad3f11..aa865413 100644 --- a/app/views/libraries/show.html.erb +++ b/app/views/libraries/show.html.erb @@ -1,3 +1,8 @@ + <% admin_or_self = admin_or_business? || @library.user_id == User.current.id %> @@ -7,7 +12,11 @@ 详情
- <%= @library.title %> + + <%= @library.title %> + + 入库案例 + 优秀案例 <% if admin_or_self %> <% if @library.pending? %> 草稿 @@ -40,20 +49,19 @@
- 详情 - <% if admin_or_business? || @library.user_id == User.current.id && @library.pending? %> - <%= link_to '删除', 'javascript:void(0);', data: { id: @library.id }, - class: 'white-btn edu-blueline-btn fr ml20 delete-btn' %> - <% end %> - <% if admin_or_self %> - <%= link_to '编辑', edit_library_path(id: @library.id), class: 'white-btn edu-blueline-btn fr' %> - <% end %> -