Sha256: db6e918ea6e829b8346759eb62b143d5b1065a0112365a51547a9cbae5c46e1b
Contents?: true
Size: 380 Bytes
Versions: 2
Compression:
Stored size: 380 Bytes
Contents
<% item_count = simple_current_order&.item_count || 0 %> <%= link_to spree.cart_path, class: "cart-icon #{'cart-icon--visible-count' if item_count > 0} #{local_assigns[:class]}", 'aria-label': Spree.t(:cart) do %> <%= icon(name: 'bag', width: size, height: size) %> <div class="font-weight-medium cart-icon-count"><%= item_count %></div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_frontend-4.1.0.rc2 | app/views/spree/shared/_cart.html.erb |
spree_frontend-4.1.0.rc1 | app/views/spree/shared/_cart.html.erb |