You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pgfqe6ch8/app/views/shixuns/propaedeutics.html.erb

42 lines
1.9 KiB

6 years ago
<%= stylesheet_link_tag '/editormd/css/editormd','/editormd/css/editormd.min.css' %>
<%= javascript_include_tag '/editormd/lib/marked.min.js','/editormd/lib/prettify.min.js','/editormd/lib/raphael.min.js','/editormd/lib/underscore.min.js','/editormd/lib/sequence-diagram.min.js',
'/editormd/lib/flowchart.min.js','/editormd/lib/jquery.flowchart.min.js','/editormd/editormd.js'%>
<div class="educontent clearfix mt30 mb80">
<div class="with65 fl edu-back-white">
<div>
<%= render :partial => "challenges/challenges_left_nav" %>
<div class="mt30">
<% if User.current.manager_of_shixun?(@shixun) %>
<p class="clearfix mb10 pl20 pr20">
<a href="<%= update_propaedeutics_shixun_path(@shixun) %>" class="ring-green fr mt8" id="edit_propaedeutics" data-tip-down="编辑"><img src="/images/educoder/icon/edit.svg" class="fl mt3 ml2"></a>
</p>
<% end %>
<div id="no_data">
<% if @shixun.propaedeutics.blank? %>
<%= render :partial => "welcome/no_data" %>
<% else %>
<div class="justify" id="challenge_editorMd_propaedeutics" style="box-sizing: border-box">
<textarea style="display:none;"><%= @shixun.propaedeutics %></textarea>
</div>
<% end %>
</div>
</div>
</div>
</div>
<div class="with35 fr pl20" id="collaborators_right">
<%= render :partial => "challenges/challenges_right" %>
</div>
</div>
<script>
/* -------------- 简介Md -------------------- */
var shixunPro = editormd.markdownToHTML("challenge_editorMd_propaedeutics", {
htmlDecode: "style,script,iframe", // you can filter tags decode
taskList: true,
tex: true, // 默认不解析
flowChart: true, // 默认不解析
sequenceDiagram: true // 默认不解析
});
</script>