Sha256: 0e25807853b65c6df1a5c27708fed0528291163dc0919514821ed80186d87f5c

Contents?: true

Size: 1.43 KB

Versions: 32

Compression:

Stored size: 1.43 KB

Contents

<div class="row justify-content-center">
  <div class="col-md-6 col-xs-8">
    <h2 class="section-faq__header float-right safe-line-break"><%= safe_line_break(section.title) %></h2>
  </div>
</div>

<% visible, hidden =
     split_content_for_mobile_view(section.number_of_faqs_before_fold || 3, section.faqs) %>
<% visible.each_with_index do |faq, index| %>
  <%= render partial: 'components/faq_row', locals: { faq: faq } %>
<% end %>
<div class="collapse" id="faq-hidden-collapse">
  <% hidden.each_with_index do |faq, index| %>
    <%= render partial: 'components/faq_row', locals: { faq: faq } %>
  <% end %>
</div>

<% unless section.number_of_faqs_before_fold.nil? %>
  <% if section.faqs && section.faqs.count > section.number_of_faqs_before_fold %>
    <div class="row justify-content-md-end section-faq__show-more">
      <div class="col-md-3 col-xs-12">
        <a class="section-faq__show-more-button"
          data-toggle="collapse" href="#faq-hidden-collapse"
          role="button"
          aria-expanded="false">
          <span class="section-faq__show-more-button__expanded">
            <%= section.fold_button_hide_text || 'SEE LESS' %> <%= image_tag('up-arrow-primary.svg') %>
          </span>
          <span class="section-faq__show-more-button__collapsed">
            <%= section.fold_button_show_text || 'SEE MORE' %> <%= image_tag('down-arrow-primary.svg') %>
          </span>
        </a>
      </div>
    </div>
  <% end %>
<% end %>

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
wcc-contentful-app-1.0.8 app/views/sections/_faq.html.erb
wcc-contentful-app-1.0.7 app/views/sections/_faq.html.erb
wcc-contentful-app-1.0.6 app/views/sections/_faq.html.erb
wcc-contentful-app-1.0.5 app/views/sections/_faq.html.erb
wcc-contentful-app-1.0.4 app/views/sections/_faq.html.erb
wcc-contentful-app-1.0.3 app/views/sections/_faq.html.erb
wcc-contentful-app-1.0.2 app/views/sections/_faq.html.erb
wcc-contentful-app-1.0.1 app/views/sections/_faq.html.erb
wcc-contentful-app-1.0.0 app/views/sections/_faq.html.erb
wcc-contentful-app-1.0.0.pre.rc3 app/views/sections/_faq.html.erb
wcc-contentful-app-1.0.0.pre.rc2 app/views/sections/_faq.html.erb
wcc-contentful-app-1.0.0.pre.rc1 app/views/sections/_faq.html.erb