Sha256: 996eeb9bffb41a41f6a44d7a289c0f4393d0781f5a45734422c121b6ed3623ac

Contents?: true

Size: 1001 Bytes

Versions: 10

Compression:

Stored size: 1001 Bytes

Contents

<%
title = component[:attributes].dig(:title, :value)&.to_s
body = component[:attributes].dig(:body, :value)&.to_s.html_safe
special_question = component[:attributes].dig(:special_question, :value)

image_blob = blob_from_data component[:attributes].dig(:image, :value)
%>

<div class="<%= promethee_class_for component %> <%= 'promethee__component__faq_item--special' if special_question %>">
  <h4 data-toggle="collapse"
      data-target="#collapse-faq-<%= component[:id] %>"
      aria-expanded="false"
      aria-controls="collapse-faq-<%= component[:id] %>">
    <%= title %>
  </h4>

  <div class="collapse" id="collapse-faq-<%= component[:id] %>">
    <% if image_blob %>
      <div class="row ">
        <div class="col-3 col-xs-3">
          <%= render 'promethee/show/image.srcset', blob: image_blob, alt: '', caption: '' %>
        </div>
        <div class="col-9 col-xs-9">
          <%= body %>
        </div>
      </div>
    <% else %>
      <%= body %>
    <% end %>
  </div>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
promethee-4.1.9 app/views/promethee/components/faq_item/_show.html.erb
promethee-4.1.8 app/views/promethee/components/faq_item/_show.html.erb
promethee-4.1.7 app/views/promethee/components/faq_item/_show.html.erb
promethee-4.1.6 app/views/promethee/components/faq_item/_show.html.erb
promethee-4.1.5 app/views/promethee/components/faq_item/_show.html.erb
promethee-4.1.4 app/views/promethee/components/faq_item/_show.html.erb
promethee-4.1.3 app/views/promethee/components/faq_item/_show.html.erb
promethee-4.1.2 app/views/promethee/components/faq_item/_show.html.erb
promethee-4.1.1 app/views/promethee/components/faq_item/_show.html.erb
promethee-4.1.0 app/views/promethee/components/faq_item/_show.html.erb