From 0734f73291be1e54f24d328c6d6ea9c9b5d0002c Mon Sep 17 00:00:00 2001 From: Spen Date: Mon, 8 Apr 2013 17:45:22 +0800 Subject: [PATCH] faq show fix --- .../panel/faq/front_end/qas/show.html.erb | 51 ++++++++++--------- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/vendor/built_in_modules/faq/app/views/panel/faq/front_end/qas/show.html.erb b/vendor/built_in_modules/faq/app/views/panel/faq/front_end/qas/show.html.erb index b168b211..fc989e53 100644 --- a/vendor/built_in_modules/faq/app/views/panel/faq/front_end/qas/show.html.erb +++ b/vendor/built_in_modules/faq/app/views/panel/faq/front_end/qas/show.html.erb @@ -1,31 +1,32 @@ -

<%= @qa.title %>

+ +

<%= @qa.question %>

-
- <%= t(:category) %> : <%= @qa.qa_category.title rescue nil %> -
+
+ <%= t(:category) %>:<%= @qa.qa_category.title rescue nil %> +
- <%= @qa.answer.html_safe rescue '' %> + <%= @qa.answer.html_safe rescue '' %>
- <% if @qa.qa_links.size > 0 %> -
- - -
- <% end %> - <% if @qa.qa_files.size > 0 %> -
- -
- <% @qa.qa_files.each do | bfile | %> - <%= link_to bfile.title, bfile.file.url, {:target => '_blank', :title => bfile.description} if bfile.file.file %> - <% end %> -
-
- <% end %> + <% if @qa.qa_links.size > 0 %> +
+ + +
+ <% end %> + <% if @qa.qa_files.size > 0 %> +
+ +
+ <% @qa.qa_files.each do | bfile | %> + <%= link_to bfile.title, bfile.file.url, {:target => '_blank', :title => bfile.description} if bfile.file.file %> + <% end %> +
+
+ <% end %>