Sha256: 24a99e9bb3bfb3634ef18519bcb38c1e872740faeb9affd7e1bf9851c29624f7

Contents?: true

Size: 728 Bytes

Versions: 3

Compression:

Stored size: 728 Bytes

Contents

<% cache [base_cache_key, taxon, 'header'] do %>
  <div class="py-md-3 text-uppercase taxon-title">
    <%= @taxon.name %>
  </div>
  <% unless @taxon.description.blank? %>
    <div class="py-3 py-md-0 taxon-description">
      <% if taxon_wysiwyg_editor_enabled? %>
        <%= raw @taxon.description %>
      <% else %>
        <%= @taxon.description %>
      <% end %>
  <% end %>
  <% if @taxon.icon&.attachment %>
    <div class="d-none d-md-block pt-4 taxon-icon">
      <%= lazy_image(
        src: main_app.cdn_image_url(@taxon.icon.attachment),
        alt: @taxon.description || Spree.t('taxon_missing_alt'),
        width: 1110,
        height: 300,
        class: 'w-100'
      ) %>
    </div>
  <% end %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_frontend-4.7.0 app/views/spree/taxons/_header.html.erb
spree_frontend-4.6.0 app/views/spree/taxons/_header.html.erb
spree_frontend-4.5.0 app/views/spree/taxons/_header.html.erb