dev_forum
SylorHuang 5 years ago
parent fba4bf3184
commit e3dbe6c573

@ -68,15 +68,15 @@
<span class="text-gray mlr5">(<%= q&.question_score %>分)</span> <span class="text-gray mlr5">(<%= q&.question_score %>分)</span>
</div> </div>
<div class="pbt5"> <div class="pbt5">
<% q_title = q.question_title&.include?("src=\"") ? q.question_title&.gsub("src=\"","src=\"#{@request_url}") : q.question_title %> <% q_title = q.question_title&.html_safe %>
<% if q.question_type == 5 %> <% if q.question_type == 5 %>
<% q_name = q.shixun_name&.include?("src=\"") ? q.shixun_name&.gsub("src=\"","src=\"#{@request_url}") : q.shixun_name %> <% q_name = q.shixun_name&.html_safe %>
<span class="ques-title"><%= q_name&.html_safe %></span> <span class="ques-title"><%= q_name&.include?("src=\"") ? q_name&.gsub("src=\"","src=\"#{@request_url}") : q_name %></span>
<div class="mt8 text-gray"> <div class="mt8 text-gray">
<span><%= q_title&.html_safe %></span> <span><%= q_title&.include?("src=\"") ? q_title&.gsub("src=\"","src=\"#{@request_url}") : q_title %></span>
</div> </div>
<% else %> <% else %>
<span class="ques-title"><%= q_title&.html_safe %></span> <span class="ques-title"><%= q_title&.include?("src=\"") ? q_title&.gsub("src=\"","src=\"#{@request_url}") : q_title %></span>
<% end %> <% end %>
</div> </div>
<div class="pbt5"> <div class="pbt5">

@ -167,15 +167,15 @@
<% end %> <% end %>
</div> </div>
<div class="pbt5"> <div class="pbt5">
<% q_title = q.question_title&.include?("src=\"") ? q.question_title&.gsub("src=\"","src=\"#{@request_url}") : q.question_title %> <% q_title = q.question_title&.html_safe %>
<% if q_type == 5 %> <% if q_type == 5 %>
<% q_name = q.shixun_name&.include?("src=\"") ? q.shixun_name&.gsub("src=\"","src=\"#{@request_url}") : q.shixun_name %> <% q_name = q.shixun_name&.html_safe %>
<span class="ques-title"><%= q_name&.html_safe %></span> <span class="ques-title"><%= q_name&.include?("src=\"") ? q_name&.gsub("src=\"","src=\"#{@request_url}") : q_name %></span>
<div class="mt8 text-gray"> <div class="mt8 text-gray">
<span><%= q_title&.html_safe %></span> <span><%= q_title&.include?("src=\"") ? q_title&.gsub("src=\"","src=\"#{@request_url}") : q_title %></span>
</div> </div>
<% else %> <% else %>
<span class="ques-title"><%= q_title&.html_safe %></span> <span class="ques-title"><%= q_title&.include?("src=\"") ? q_title&.gsub("src=\"","src=\"#{@request_url}") : q_title %></span>
<% end %> <% end %>
</div> </div>
</div> </div>

Loading…
Cancel
Save