mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
- Move from `enterprises/shop.html.haml` to `shopping_shared/_tabs.html.haml` to handle its position correctly - Remove marginTop and height to order cycle component and display it relative to parent's bottom (ie. the columns in `tab-buttons`) - Adjust z-index to display the entire component
16 lines
695 B
Plaintext
16 lines
695 B
Plaintext
- if (@order.andand.distributor || current_distributor) == current_distributor
|
|
|
|
- shop_tabs.each do |tab|
|
|
= render "shopping_shared/tabs/#{tab[:name]}"
|
|
|
|
#shop-tabs{ ng: { controller: "PageSelectionCtrl", init: "whitelistPages(#{shop_tab_names.to_json})", cloak: true } }
|
|
.tab-buttons
|
|
.flex.row
|
|
.columns.small-12.large-8
|
|
- shop_tabs.each do |tab|
|
|
.page{ "ng-class" => "{ selected: selectedPage() == '#{tab[:name]}' }" }
|
|
%a{ href: "##{tab[:name]}" }=tab[:title]
|
|
.columns.large-4.show-for-large-up
|
|
= render partial: "shopping_shared/order_cycles"
|
|
.page-view{ ng: {include: "'shop/' + selectedPage() + '.html'" } }
|