Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
70
app/views/faqs/show.html.erb
Normal file
70
app/views/faqs/show.html.erb
Normal file
@@ -0,0 +1,70 @@
|
||||
<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"), (@product ? "#{@product.name} #{t('txt.faqs.faqs')}" : t("txt.faqs.general_faqs"))) %>
|
||||
|
||||
<% if @product %>
|
||||
<h1><%= @product.name %> <%= t("txt.faqs.faqs") %></h1>
|
||||
<% else %>
|
||||
<h1><%= t("txt.faqs.general_faqs") %></h1>
|
||||
<% end %>
|
||||
|
||||
<div class="left">
|
||||
|
||||
<ul class="nav">
|
||||
<% for category in @categories %>
|
||||
<% current = category == @category%>
|
||||
<% url = @product ? product_faq_path(@product, category) : general_faq_path(category) %>
|
||||
<li><%= link_to(category.name, url, :class => "#{"current" if current}") %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<div class="nav-panel">
|
||||
<div class="content">
|
||||
<div class="faqs">
|
||||
<h3><%= @category.description %></h3>
|
||||
<ul class="common">
|
||||
<% for faq in @faqs %>
|
||||
<% url = @product ? product_faq_path(@product, @category) : general_faq_path(@category) %>
|
||||
<li><%= link_to faq.question, "##{faq.url_param}" %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<% for faq in @faqs %>
|
||||
<h2><a name="<%= faq.url_param %>"><%= faq.question %></a></h2>
|
||||
<div class="answer"><%= render :inline => faq.answer %></div>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
<h4><%= t("txt.faqs.other_faqs") %></h4>
|
||||
<ul class="faqs-links">
|
||||
<% if @product %>
|
||||
<%= faqs_links(@products, @product) %>
|
||||
<% else %>
|
||||
<%= faqs_links(@products) %>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<h4><%= t("txt.faqs.cant_find") %></h4>
|
||||
<p><%= t("txt.faqs.try_search") %></p>
|
||||
<p><%= t("txt.faqs.contact_us") %></p>
|
||||
|
||||
<div class="fpbox">
|
||||
<h2><%= featured_product.name %></h2>
|
||||
<%= screenshot_link(featured_product.screenshot) %>
|
||||
<p><%= featured_product.short_description %></p>
|
||||
<div class="buttonz">
|
||||
<%= download_link(featured_product) %>
|
||||
<%= buy_professional(featured_product) %>
|
||||
<%= buy_standard(featured_product) %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user