Sha256: 145f4e62f8c12b67aca0354432b688fd2b44f3fdd337270dd056379697b3cf5c

Contents?: true

Size: 1.1 KB

Versions: 7

Compression:

Stored size: 1.1 KB

Contents

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

<% if Spree::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

7 entries across 7 versions & 1 rubygems

Version Path
spree_frontend-4.3.3 app/views/spree/products/_description.html.erb
spree_frontend-4.3.2 app/views/spree/products/_description.html.erb
spree_frontend-4.3.1 app/views/spree/products/_description.html.erb
spree_frontend-4.3.0 app/views/spree/products/_description.html.erb
spree_frontend-4.3.0.rc3 app/views/spree/products/_description.html.erb
spree_frontend-4.3.0.rc2 app/views/spree/products/_description.html.erb
spree_frontend-4.3.0.rc1 app/views/spree/products/_description.html.erb