Sha256: bcdb52e93f6a6eaee98ebf5c2d4b42c414c3b538ce180f6dc829283227a14fe0

Contents?: true

Size: 907 Bytes

Versions: 8

Compression:

Stored size: 907 Bytes

Contents

<h1><%= Spree.t(:frequently_asked_questions, scope: :spree_faq) %></h1>

<div id="faqs">
  <% @categories.each do |category| %>
    <div id="<%= dom_id category -%>" class="category">
      <h2><%= h category.name %></h2>
      <ul class="answers">
        <% category.questions.each do |question| %>
          <li>
            <a class="question" id="<%= dom_id question -%>" href="#<%= "answer_#{question.id}" %>">
              <%= raw(question.question) -%>
            </a>
            <div class="answer" id="<%= "answer_#{question.id}"-%>">
              <%= raw(question.answer) %>
            </div>
          </li>
        <% end %>
      </ul>
    </div>
  <% end %>
</div>

<% content_for :sidebar do %>
  <% if defined? @products && defined? @taxon %>
    <%= render 'spree/shared/filters' %>
  <% elsif defined? @taxonomies %>
    <%= render 'spree/shared/taxonomies' %>
  <% end %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
spree-faq-2.4.0 app/views/spree/faqs/index.html.erb
spree-faq-2.3.0 app/views/spree/faqs/index.html.erb
spree-faq-2.2.1 app/views/spree/faqs/index.html.erb
spree-faq-2.1.1 app/views/spree/faqs/index.html.erb
spree-faq-2.0.1 app/views/spree/faqs/index.html.erb
spree-faq-2.2.0 app/views/spree/faqs/index.html.erb
spree-faq-2.1.0 app/views/spree/faqs/index.html.erb
spree-faq-2.0.0 app/views/spree/faqs/index.html.erb