|
|
|
@ -69,16 +69,14 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pbt5">
|
|
|
|
|
<% q_markdown = to_markdown(q.question_title) %>
|
|
|
|
|
<% q_title = q_markdown&.include?("src=\"") ? q_markdown&.gsub("src=\"","src=\"#{@request_url}")&.html_safe : q_markdown %>
|
|
|
|
|
<% if q.question_type == 5 %>
|
|
|
|
|
<% q_markdown_name = to_markdown(q.shixun_name) %>
|
|
|
|
|
<% q_name = q_markdown_name&.include?("src=\"") ? q_markdown_name&.gsub("src=\"","src=\"#{@request_url}")&.html_safe : q_markdown_name %>
|
|
|
|
|
<span class="ques-title" id="ques_marked_<%= index %>"><%= q_name %></span>
|
|
|
|
|
<span class="ques-title" ><%= q_markdown_name %></span>
|
|
|
|
|
<div class="mt8 text-gray">
|
|
|
|
|
<span id="ques_title_<%= index %>"><%= q_markdown %></span>
|
|
|
|
|
<span><%= q_markdown %></span>
|
|
|
|
|
</div>
|
|
|
|
|
<% else %>
|
|
|
|
|
<span class="ques-title" id="ques_title_<%= index %>"><%= q_markdown %></span>
|
|
|
|
|
<span class="ques-title"><%= q_markdown %></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pbt5">
|
|
|
|
@ -86,14 +84,14 @@
|
|
|
|
|
<% q.exercise_choices.each_with_index do |s,index| %>
|
|
|
|
|
<p class="pbt5">
|
|
|
|
|
<span class="choose-radio"></span>
|
|
|
|
|
<span class="mr15"><%= convert_to_char((index+1).to_s)%></span><%= s.choice_text%>
|
|
|
|
|
<span class="mr15"><%= convert_to_char((index+1).to_s)%></span><%= to_markdown(s.choice_text) %>
|
|
|
|
|
</p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% elsif q.question_type == 1 %>
|
|
|
|
|
<% q.exercise_choices.each_with_index do |s,index| %>
|
|
|
|
|
<p class="pbt5">
|
|
|
|
|
<span class="choose-checkbox"></span>
|
|
|
|
|
<span class="mr20"><%= convert_to_char((index+1).to_s)%></span><%= s.choice_text%>
|
|
|
|
|
<span class="mr20"><%= convert_to_char((index+1).to_s)%></span><%= to_markdown(s.choice_text) %>
|
|
|
|
|
</p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% elsif q.question_type == 2 %>
|
|
|
|
@ -101,7 +99,7 @@
|
|
|
|
|
<% q.exercise_choices.each_with_index do |s,index| %>
|
|
|
|
|
<span class="mr15">
|
|
|
|
|
<span class="choose-radio"></span>
|
|
|
|
|
<span class="mlr5"><%= s.choice_text %></span>
|
|
|
|
|
<span class="mlr5"><%= to_markdown(s.choice_text) %></span>
|
|
|
|
|
</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</p>
|
|
|
|
|