|
|
@ -1,57 +1,69 @@
|
|
|
|
|
|
|
|
<%
|
|
|
|
|
|
|
|
admin_or_self = User.current.admin? || @library.user_id == User.current.id
|
|
|
|
|
|
|
|
%>
|
|
|
|
<div class="educontent mb50">
|
|
|
|
<div class="educontent mb50">
|
|
|
|
<p class="mt10 mb20 clearfix lineh-20">
|
|
|
|
<p class="mt10 mb20 clearfix lineh-20">
|
|
|
|
<a href="javascript:void(0)" class="color-grey-9">胡莎莎</a> >
|
|
|
|
<%= link_to '文库', libraries_path, class: 'color-grey-9' %> >
|
|
|
|
<a href="javascript:void(0)" class="color-grey-9">文库</a> >
|
|
|
|
<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">C语言程序教学案例</span>
|
|
|
|
<span class="font-22 fl mr10 task-hide" style="max-width: 800px"><%= @library.title %></span>
|
|
|
|
<span class="fl edu-filter-btn edu-activity-green mt5">草稿</span>
|
|
|
|
<% if admin_or_self %>
|
|
|
|
<a href="javascript:void(0)" class="fr color-grey-9 mt5">返回</a>
|
|
|
|
<% if @library.pending? %>
|
|
|
|
|
|
|
|
<span class="fl edu-filter-btn edu-activity-green mt5">草稿</span>
|
|
|
|
|
|
|
|
<% elsif @library.processing? %>
|
|
|
|
|
|
|
|
<span class="fl edu-filter-btn edu-activity-green mt5">审核中</span>
|
|
|
|
|
|
|
|
<% elsif @library.refused? %>
|
|
|
|
|
|
|
|
<span class="fl edu-filter-btn edu-activity-orange mt5">未通过</span>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= link_to('返回', libraries_path, class: 'fr color-grey-9 mt5') %>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<div class="edu-back-white">
|
|
|
|
<div class="edu-back-white">
|
|
|
|
<div class="padding30">
|
|
|
|
<% if admin_or_self && !@library.published? && @library_applies.size > 0 %>
|
|
|
|
<p class="mb10 clearfix">
|
|
|
|
<div class="padding30">
|
|
|
|
<span class="color-grey-6 font-16 mr10">私有化原因</span>
|
|
|
|
<p class="mb10 clearfix">
|
|
|
|
<span class="color-grey-c font-12">(请按照提示修改,并在完成编辑后重新提交)</span>
|
|
|
|
<span class="color-grey-6 font-16 mr10">私有化原因</span>
|
|
|
|
<a href="javascript:void(0)" class="color-blue fr" at="0" onclick="getMore(this)">点击展开<i class="iconfont icon-xiajiantou color-blue font-14 ml5"></i></a>
|
|
|
|
<span class="color-grey-c font-12">(请按照提示修改,并在完成编辑后重新提交)</span>
|
|
|
|
</p>
|
|
|
|
<a href="javascript:void(0)" class="color-blue fr" at="0" onclick="getMore(this)">点击展开<i class="iconfont icon-xiajiantou color-blue font-14 ml5"></i></a>
|
|
|
|
<div class="private_reason">
|
|
|
|
</p>
|
|
|
|
<li>
|
|
|
|
<div class="private_reason">
|
|
|
|
<p class="color-grey-9">2018-12-25 03:58</p>
|
|
|
|
<% @library_applies.each do |apply| %>
|
|
|
|
<p class="lineh-25 font-16 break-word">文档&视频的任何位置(包括文档标题、简介、文档等),都不允许出现任何有推广或宣传目的内容,如电话号码、电子邮箱地址、即时通讯工具号码等具体联系信息以及广告宣传语等,其中被警告多次而仍然添加广告内容的用户会被判定为广告用户,将接受封号处罚。</p>
|
|
|
|
<li>
|
|
|
|
</li>
|
|
|
|
<p class="color-grey-9"><%= apply.updated_at.strftime('%Y-%m-%d %H:%M') %></p>
|
|
|
|
<li>
|
|
|
|
<p class="lineh-25 font-16 break-word"><%= apply.reason %></p>
|
|
|
|
<p class="color-grey-9">2018-12-25 03:58</p>
|
|
|
|
</li>
|
|
|
|
<p class="lineh-25 font-16 break-word">文档&视频的任何位置(包括文档标题、简介、文档等),都不允许出现任何有推广或宣传目的内容,如电话号码、电子邮箱地址、即时通讯工具号码等具体联系信息宣传语等,其中被警告多次而仍然添加广告内容的用户会被判定为广告用户,将接受封号处罚。</p>
|
|
|
|
<% end %>
|
|
|
|
</li>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<div class="padding30 bor-top-greyE">
|
|
|
|
<div class="padding30 bor-top-greyE">
|
|
|
|
<p class="mb10 clearfix">
|
|
|
|
<p class="mb10 clearfix">
|
|
|
|
<span class="color-grey-6 font-16 mr10">详情</span>
|
|
|
|
<span class="color-grey-6 font-16 mr10">详情</span>
|
|
|
|
<a href="javascript:void(0)" class="white-btn edu-blueline-btn fr">编辑</a>
|
|
|
|
<% if admin_or_self && @library.editable? %>
|
|
|
|
|
|
|
|
<%= link_to '编辑', edit_library_path(id: @library.id), class: 'white-btn edu-blueline-btn fr' %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<div class="df mb20">
|
|
|
|
<div class="df mb20">
|
|
|
|
<img src="http://img4.duitang.com/uploads/item/201412/01/20141201183854_TRArc.thumb.700_0.png" width="50" height="50" class="radius mr15 mt3"/>
|
|
|
|
<img src="<%= url_to_avatar(@library.user) %>" width="50" height="50" class="radius mr15 mt3"/>
|
|
|
|
<div class="flex1">
|
|
|
|
<div class="flex1">
|
|
|
|
<li class="font-16">胡莎莎</li>
|
|
|
|
<li class="font-16"><%= @library.user.show_real_name %></li>
|
|
|
|
<li class="clearfix">
|
|
|
|
<li class="clearfix">
|
|
|
|
<span class="fl color-grey-9 mr20">国防科技大学</span>
|
|
|
|
<span class="fl color-grey-9 mr20"><%= @library.user.school_name %></span>
|
|
|
|
<span class="fl color-grey-9">教授</span>
|
|
|
|
<span class="fl color-grey-9"><%= @library.user.identity %></span>
|
|
|
|
<span class="fr">
|
|
|
|
<span class="fr">
|
|
|
|
<span class="fl color-grey-9 mr30">编码:<span class="color-grey-6">2018120409235950611737</span></span>
|
|
|
|
<span class="fl color-grey-9 mr30">编码:<span class="color-grey-6"><%= @library.uuid %></span></span>
|
|
|
|
<span class="fl color-grey-9">上传时间:<span class="color-grey-6">2018-12-04 09:23</span></span>
|
|
|
|
<span class="fl color-grey-9">上传时间:<span class="color-grey-6"><%= @library.created_at.strftime('%Y-%m-%d %H:%M') %></span></span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div class="break_full_word new_li" id="labraries_editorMd_content">
|
|
|
|
<div class="break_full_word new_li" id="labraries_editorMd_content">
|
|
|
|
<textarea style="display:none;"><!---内容---></textarea>
|
|
|
|
<textarea style="display:none;"><%= @library.content %></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="mt10">
|
|
|
|
<div class="mt10">
|
|
|
|
<!--附件-->
|
|
|
|
<%= render partial: 'attachments/links', locals: { attachments: @library.attachments, options: {} } %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -63,11 +75,11 @@
|
|
|
|
if(at=="0"){
|
|
|
|
if(at=="0"){
|
|
|
|
$(item).html('点击收起<i class="iconfont icon-shangjiantou color-blue font-14 ml5"></i>');
|
|
|
|
$(item).html('点击收起<i class="iconfont icon-shangjiantou color-blue font-14 ml5"></i>');
|
|
|
|
$(item).attr("at","1");
|
|
|
|
$(item).attr("at","1");
|
|
|
|
$(".private_reason").css({height:"auto"});
|
|
|
|
$(".private_reason").css({maxHeight:"unset"});
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$(item).html('点击展开<i class="iconfont icon-xiajiantou color-blue font-14 ml5"></i>');
|
|
|
|
$(item).html('点击展开<i class="iconfont icon-xiajiantou color-blue font-14 ml5"></i>');
|
|
|
|
$(item).attr("at","0");
|
|
|
|
$(item).attr("at","0");
|
|
|
|
$(".private_reason").css({height:"166px"});
|
|
|
|
$(".private_reason").css({maxHeight:"150px"});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var homeworkDescr = editormd.markdownToHTML("labraries_editorMd_content", {
|
|
|
|
var homeworkDescr = editormd.markdownToHTML("labraries_editorMd_content", {
|
|
|
@ -78,19 +90,3 @@
|
|
|
|
sequenceDiagram: true // 默认不解析
|
|
|
|
sequenceDiagram: true // 默认不解析
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="educontent edu-back-white mt20 successPage">
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<img src="/images/educoder/success.png" width="100" class="mb30">
|
|
|
|
|
|
|
|
<div class="lineh-30 ed-txt-center font-24 color-grey-3 font-bd mb15">
|
|
|
|
|
|
|
|
<p>恭喜!</p>
|
|
|
|
|
|
|
|
<p>文档上传成功</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p class="lineh-30 ed-txt-center font-16 color-grey-9 font-bd mb15">通过平台管理员审核后,即可公开显示</p>
|
|
|
|
|
|
|
|
<li class="inline">
|
|
|
|
|
|
|
|
<a href="javascript:void(0)" class="white-btn edu-blueline-btn changebtn mr20 fl">查看已上传文档</a>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)" class="white-btn edu-blueback-btn changebtn fl">继续上传</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|