Sha256: cc10796a4c1fc643bda5ee2dc0ca4356fad63b8041783504923ddca90a548532

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

Contents

<h3 class="pt-4 font-weight-bold text-uppercase product-details-subtitle"><%= Spree.t(:description) %></h3>

<% if Spree::Frontend::Config[:show_raw_product_description] || product_wysiwyg_editor_enabled? %>
  <div id="product-description-long" class="m-0 text-break product-description" data-hook="description">
    <%= raw product_description(@product) %>
  </div>
<% else %>
  <div id="product-description-short" class="m-0 text-break product-description" data-hook="short-description">
      <%= sanitize product_description(@product).truncate(450) %>
  </div>
  <div id="product-description-long" class="m-0 text-break product-description d-none" data-hook="description">
    <%= sanitize product_description(@product) %>
  </div>
  <% if product_description(@product).length > 450 %>
    <span id="product-description-arrow" class="d-flex justify-content-center align-items-center mt-3 mx-auto product-description-arrow" aria-hidden="true">
      <%= icon(name: 'arrow-right',
               classes: 'spree-icon-arrow spree-icon-arrow-down',
               width: 20,
               height: 20) %>
    </span>
  <% end %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_frontend-4.7.0 app/views/spree/products/_description.html.erb
spree_frontend-4.6.0 app/views/spree/products/_description.html.erb
spree_frontend-4.5.0 app/views/spree/products/_description.html.erb
spree_frontend-4.4.0 app/views/spree/products/_description.html.erb