Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
34
app/views/faqs/search.html.erb
Normal file
34
app/views/faqs/search.html.erb
Normal file
@@ -0,0 +1,34 @@
|
||||
<div class="subpage faqs-content">
|
||||
|
||||
<div class="section-heading"><%= image_tag("heading-support.gif", :alt => t("txt.alt.support")) %></div>
|
||||
|
||||
<%= breadcrumb(link_to(t('txt.support.help_support'), "/support"), t('txt.faqs.search_breadcrumb')) %>
|
||||
|
||||
<h1><%= t("txt.faqs.search_results") %></h1>
|
||||
|
||||
<div class="search">
|
||||
|
||||
<% unless @faqs.blank? %>
|
||||
<% for faq in @faqs %>
|
||||
<% if faq.product %>
|
||||
<h2><%= link_to faq.question, product_faq_path(faq.product, faq) %></h2>
|
||||
<div class="path"><%= t('txt.faqs.faq_in', :link => link_to("#{faq.product.name} » #{faq.faq_category.name}", product_faq_path(faq.product, faq.faq_category))) %></div>
|
||||
<% else %>
|
||||
<h2><%= link_to faq.question, general_faq_path(faq) %></h2>
|
||||
<div class="path"><%= t('txt.faqs.faq_in', :link => link_to("#{t("txt.faqs.general_faqs")} » #{faq.faq_category.name}", general_faq_path(faq.faq_category))) %></div>
|
||||
<% end %>
|
||||
<div class="answer"><%= render :inline => faq.answer %></div>
|
||||
<% end %>
|
||||
|
||||
<% else %>
|
||||
|
||||
<p><%= t('txt.faqs.no_search_results') %></p>
|
||||
<br />
|
||||
<h2 class="different-search"><%= t('txt.faqs.try_different_search') %></h2>
|
||||
<%= render :partial => "support/search" %>
|
||||
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user