dev_forum
SylorHuang 6 years ago
parent 8f3be9a7f6
commit 0922155a1c

@ -349,9 +349,7 @@ module ApplicationHelper
}
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML,options)
m_t = markdown.render(text)
ss = m_t&.include?("src=\"") ? m_t&.gsub("src=\"","src=\"#{request_url}") : m_t
Rails.logger.info("############_____________ss________________##################{ss}")
ss
m_t&.include?("src=\"") ? m_t&.gsub("src=\"","src=\"#{request_url}") : m_t
end
end

@ -44,7 +44,6 @@
<span class="mr15">实训题<span class="mlr5"><%= @exercise_ques_shixun_count %></span>题,
共<span class="mlr5"><%= @exercise_ques_shixun_scores %></span>分</span>
<% end %>
<% if @exercise_ques_count > 0 %>
<span class="pull-right">
共<span class="text-orange mlr5"><%= @exercise_ques_scores %></span>分
@ -59,7 +58,7 @@
<div class="mbt10">
<% @exercise_questions.each do |q| %>
<div class="bdc">
<div class="pbt10">
<div class="pbt5">
<div class="pbt5">
<span class="mr5 text-blue"><%= q.question_number %>、</span>
<span class="text-blue">
@ -80,15 +79,15 @@
<div class="pbt5">
<% if q.question_type == 0 %>
<% q.exercise_choices.each do |s| %>
<div class="pbt5 clearfix">
<span class="choose-radio pull-left"></span>
<div class="pbt5 clearfix v-middle">
<span class="choose-radio pull-left line-20"></span>
<span class="inline-block pull-left line-20"><%= to_markdown(s.choice_text) %></span>
</div>
<% end %>
<% elsif q.question_type == 1 %>
<% q.exercise_choices.each do |s| %>
<div class="pbt5 clearfix">
<span class="choose-checkbox pull-left"></span>
<div class="pbt5 clearfix v-middle">
<span class="choose-checkbox pull-left line-20"></span>
<span class="inline-block pull-left line-20"><%= to_markdown(s.choice_text) %></span>
</div>
<% end %>
@ -96,8 +95,8 @@
<div class="pbt5 clearfix">
<% q.exercise_choices.each do |s| %>
<span class="mr15 clearfix">
<span class="choose-radio pull-left"></span>
<span class="mlr5 inline-block pull-left line-20"><%= to_markdown(s.choice_text) %></span>
<span class="choose-radio "></span>
<span class="mlr5 inline-block"><%= s.choice_text %></span>
</span>
<% end %>
</div>

@ -315,6 +315,8 @@ textarea{
.line-20 P{
margin-bottom:0;
}
.v-middle{
vertical-align: middle;
}

Loading…
Cancel
Save