|
|
|
@ -68,6 +68,7 @@
|
|
|
|
|
<span class="text-gray mlr5">(<%= q&.question_score %>分)</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pbt5">
|
|
|
|
|
<img src="http://47.96.87.25:48080/api/attachments/368984" alt="电脑的电路图" title="电脑的电路图">
|
|
|
|
|
<% q_markdown = to_markdown(q.question_title) %>
|
|
|
|
|
<% if q.question_type == 5 %>
|
|
|
|
|
<% q_markdown_name = to_markdown(q.shixun_name) %>
|
|
|
|
@ -84,14 +85,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><%= to_markdown(s.choice_text) %>
|
|
|
|
|
<span class="mr15"><%= convert_to_char((index+1).to_s)%></span><span class="inline-block"><%= to_markdown(s.choice_text) %></span>
|
|
|
|
|
</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><%= to_markdown(s.choice_text) %>
|
|
|
|
|
<span class="mr20"><%= convert_to_char((index+1).to_s)%></span><span class="inline-block"><%= to_markdown(s.choice_text) %></span>
|
|
|
|
|
</p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% elsif q.question_type == 2 %>
|
|
|
|
@ -99,7 +100,7 @@
|
|
|
|
|
<% q.exercise_choices.each_with_index do |s,index| %>
|
|
|
|
|
<span class="mr15">
|
|
|
|
|
<span class="choose-radio"></span>
|
|
|
|
|
<span class="mlr5"><%= to_markdown(s.choice_text) %></span>
|
|
|
|
|
<span class="mlr5 inline-block"><%= to_markdown(s.choice_text) %></span>
|
|
|
|
|
</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</p>
|
|
|
|
|