- 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 .row .columns.small-12.large-8 - shop_tabs.each do |tab| .page{ "ng-class" => "{ selected: selectedPage() == '#{tab[:name]}' }" } %a{ href: "##{tab[:name]}" }=tab[:title] .page-view{ ng: {include: "'shop/' + selectedPage() + '.html'" } }