mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
This old gem implemented some functionality for handling nils which is no longer needed, as it's provided natively by Ruby with the &. operator.
16 lines
689 B
Plaintext
16 lines
689 B
Plaintext
- if (@order&.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'" } }
|