|
|
|
@ -68,15 +68,17 @@
|
|
|
|
|
<span class="text-gray mlr5">(<%= q&.question_score %>分)</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pbt5">
|
|
|
|
|
<% q_title = q.question_title&.html_safe %>
|
|
|
|
|
<% 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_name = q.shixun_name&.html_safe %>
|
|
|
|
|
<span class="ques-title"><%= q_name&.include?("src=\"") ? q_name&.gsub("src=\"","src=\"#{@request_url}") : q_name %></span>
|
|
|
|
|
<% 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>
|
|
|
|
|
<div class="mt8 text-gray">
|
|
|
|
|
<span><%= q_title&.include?("src=\"") ? q_title&.gsub("src=\"","src=\"#{@request_url}") : q_title %></span>
|
|
|
|
|
<span id="ques_title_<%= index %>"><%= q_title %></span>
|
|
|
|
|
</div>
|
|
|
|
|
<% else %>
|
|
|
|
|
<span class="ques-title"><%= q_title&.include?("src=\"") ? q_title&.gsub("src=\"","src=\"#{@request_url}") : q_title %></span>
|
|
|
|
|
<span class="ques-title" id="ques_title_<%= index %>"><%= q_title %></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pbt5">
|
|
|
|
@ -134,4 +136,5 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
</html>
|