Add administrator replies, \r\n conversion to br, CSS
This commit is contained in:
parent
1ceb2abf34
commit
8bceab05ae
|
|
@ -10,7 +10,7 @@
|
|||
category_id = ask_question.category_id.to_s
|
||||
extra_info = ask_settings_info[category_id]
|
||||
%>
|
||||
<div class="ask-question-wrap col-md-4 category-<%= category_id %>">
|
||||
<div class="ask-question-wrap category-<%= category_id %>" style="border-top: 1px solid #000;margin-top: 10px;padding-top: 10px;width: 100%;">
|
||||
<div class="ask-question-basic">
|
||||
<div class="ask-title"><%= link_to ask_question.title,"#{data['url']}?item=#{ask_question.id}",title: ask_question.title %></div>
|
||||
<div class="ask-content"><%= ask_question.content %></div>
|
||||
|
|
@ -50,10 +50,17 @@
|
|||
end
|
||||
%>
|
||||
<div class="ask-question-extra <%= fk %>">
|
||||
<%= fv %>
|
||||
<%= fv.to_s.gsub(/\r\n|\r|\n/, "<br>").html_safe %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<%# 顯示管理者回覆內容 %>
|
||||
<% if ask_question.reply.present? %>
|
||||
<div class="ask-question-reply" style="border-top: 1px dashed #ccc; margin-top: 10px; padding-top: 10px;">
|
||||
<span style="font-weight: bold;display: block;">回覆:</span>
|
||||
<%= ask_question.reply.to_s.gsub(/\r\n|\r|\n/, "<br>").html_safe %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
|
|||
Loading…
Reference in New Issue