|
|
@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
.markdown-body table td{
|
|
|
|
|
|
|
|
word-break: break-all;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
<%
|
|
|
|
<%
|
|
|
|
admin_or_self = admin_or_business? || @library.user_id == User.current.id
|
|
|
|
admin_or_self = admin_or_business? || @library.user_id == User.current.id
|
|
|
|
%>
|
|
|
|
%>
|
|
|
@ -7,7 +12,11 @@
|
|
|
|
<span class="color-grey-3">详情</span>
|
|
|
|
<span class="color-grey-3">详情</span>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<p class="lineh-25 mb20 clearfix">
|
|
|
|
<p class="lineh-25 mb20 clearfix">
|
|
|
|
<span class="font-22 fl mr10 task-hide" style="max-width: 800px"><%= @library.title %></span>
|
|
|
|
<span class="font-22 fl mr10 task-hide" style="max-width: 800px">
|
|
|
|
|
|
|
|
<%= @library.title %>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="edu-filter-btn edu-activity-blue fl cdefault mt3">入库案例</span>
|
|
|
|
|
|
|
|
<span class="edu-filter-btn edu-activity-red fl cdefault mt3">优秀案例</span>
|
|
|
|
<% if admin_or_self %>
|
|
|
|
<% if admin_or_self %>
|
|
|
|
<% if @library.pending? %>
|
|
|
|
<% if @library.pending? %>
|
|
|
|
<span class="fl edu-filter-btn edu-activity-green mt5">草稿</span>
|
|
|
|
<span class="fl edu-filter-btn edu-activity-green mt5">草稿</span>
|
|
|
@ -40,8 +49,11 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<div class="padding30">
|
|
|
|
<div class="padding30">
|
|
|
|
<p class="mb10 clearfix">
|
|
|
|
<div class="df">
|
|
|
|
<span class="color-grey-6 font-16 mr10">详情</span>
|
|
|
|
<%= link_to image_tag(url_to_avatar(@library.user), width: 50, height: 50, class: 'radius mr15 mt3'), user_path(@library.user) %>
|
|
|
|
|
|
|
|
<div class="flex1">
|
|
|
|
|
|
|
|
<li class="clearfix">
|
|
|
|
|
|
|
|
<span class="font-16 fl"><%= @library.user.show_real_name %></span>
|
|
|
|
<% if admin_or_business? || @library.user_id == User.current.id && @library.pending? %>
|
|
|
|
<% if admin_or_business? || @library.user_id == User.current.id && @library.pending? %>
|
|
|
|
<%= link_to '删除', 'javascript:void(0);', data: { id: @library.id },
|
|
|
|
<%= link_to '删除', 'javascript:void(0);', data: { id: @library.id },
|
|
|
|
class: 'white-btn edu-blueline-btn fr ml20 delete-btn' %>
|
|
|
|
class: 'white-btn edu-blueline-btn fr ml20 delete-btn' %>
|
|
|
@ -49,11 +61,7 @@
|
|
|
|
<% if admin_or_self %>
|
|
|
|
<% if admin_or_self %>
|
|
|
|
<%= link_to '编辑', edit_library_path(id: @library.id), class: 'white-btn edu-blueline-btn fr' %>
|
|
|
|
<%= link_to '编辑', edit_library_path(id: @library.id), class: 'white-btn edu-blueline-btn fr' %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
</li>
|
|
|
|
<div class="df">
|
|
|
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(@library.user), width: 50, height: 50, class: 'radius mr15 mt3'), user_path(@library.user) %>
|
|
|
|
|
|
|
|
<div class="flex1">
|
|
|
|
|
|
|
|
<li class="font-16"><%= @library.user.show_real_name %></li>
|
|
|
|
|
|
|
|
<li class="clearfix">
|
|
|
|
<li class="clearfix">
|
|
|
|
<span class="fl color-grey-9 mr20"><%= @library.user.school_name %></span>
|
|
|
|
<span class="fl color-grey-9 mr20"><%= @library.user.school_name %></span>
|
|
|
|
<span class="fl color-grey-9"><%= @library.user.identity %></span>
|
|
|
|
<span class="fl color-grey-9"><%= @library.user.identity %></span>
|
|
|
|