faq show fix
This commit is contained in:
parent
a4ebe31ada
commit
0734f73291
|
@ -1,31 +1,32 @@
|
||||||
<h1 class="h1"><%= @qa.title %></h1>
|
|
||||||
|
<h1 class="h1"><%= @qa.question %></h1>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<div class="info1">
|
<div class="info1">
|
||||||
<span><%= t(:category) %> : <%= @qa.qa_category.title rescue nil %></span>
|
<span><%= t(:category) %>:<%= @qa.qa_category.title rescue nil %></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="news_paragraph">
|
<div class="news_paragraph">
|
||||||
<%= @qa.answer.html_safe rescue '' %>
|
<%= @qa.answer.html_safe rescue '' %>
|
||||||
</div>
|
</div>
|
||||||
<div class="linkAndFile">
|
<div class="linkAndFile">
|
||||||
<% if @qa.qa_links.size > 0 %>
|
<% if @qa.qa_links.size > 0 %>
|
||||||
<div>
|
<div>
|
||||||
<i class="icons-link"></i>
|
<i class="icons-link"></i>
|
||||||
<div class="showLink">
|
<div class="showLink">
|
||||||
<% @qa.qa_links.each do | blink | %>
|
<% @qa.qa_links.each do | blink | %>
|
||||||
<%= link_to blink.title, blink.url, :target => '_blank' %>
|
<%= link_to blink.title, blink.url, :target => '_blank' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @qa.qa_files.size > 0 %>
|
<% if @qa.qa_files.size > 0 %>
|
||||||
<div>
|
<div>
|
||||||
<i class="icons-paperclip"></i>
|
<i class="icons-paperclip"></i>
|
||||||
<div class="showFile">
|
<div class="showFile">
|
||||||
<% @qa.qa_files.each do | bfile | %>
|
<% @qa.qa_files.each do | bfile | %>
|
||||||
<%= link_to bfile.title, bfile.file.url, {:target => '_blank', :title => bfile.description} if bfile.file.file %>
|
<%= link_to bfile.title, bfile.file.url, {:target => '_blank', :title => bfile.description} if bfile.file.file %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue