mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
The old Paperclip configuration was very clever and easy to use but it was also a complicated implementation building on the complicated Spree preference system. I simplified this with Active Storage, storing simple references to blob ids and default URLs as backup.
23 lines
753 B
Plaintext
23 lines
753 B
Plaintext
%nav.tab-bar.show-for-medium-down
|
|
%section.left
|
|
%a.left-off-canvas-toggle.menu-icon
|
|
= image_pack_tag "menu/btn-menu-mobile.png"
|
|
|
|
%section.left
|
|
.ofn-logo
|
|
%a{href: main_app.root_path}
|
|
%img{src: ContentConfig.url_for(:logo_mobile), srcset: ContentConfig.url_for(:logo_mobile_svg), width: "75", height: "26"}
|
|
|
|
%section.right{"ng-cloak" => true}
|
|
%span.cart-span{"ng-class" => "{ dirty: Cart.dirty || Cart.empty(), 'pure-dirty': Cart.dirty }"}
|
|
%a.icon{ng: {click: 'toggleCartSidebar()'}}
|
|
%span
|
|
= t '.cart'
|
|
%span.count
|
|
= image_pack_tag "menu/icn-cart.svg"
|
|
%span
|
|
{{ Cart.total_item_count() }}
|
|
|
|
%a{href: main_app.shop_path}
|
|
{{ CurrentHub.hub.name }}
|