<%= content_tag :div, class: 'menu-list' do %> <%= link_to t('trade.admin.orders.index.title'), { controller: 'trade/admin/orders' }, class: active_helper(controllers: 'orders', active: 'is-active') %> <%= link_to t('trade.admin.payments.index.title'), { controller: 'trade/admin/payments' }, class: active_helper(controllers: 'payments', active: 'is-active') %> <%= link_to t('trade.admin.payment_methods.index.title'), { controller: 'trade/admin/payment_methods' }, class: active_helper(controllers: 'payment_methods', active: 'is-active') %> <%= link_to t('trade.admin.carts.index.title'), { controller: 'trade/admin/carts' }, class: active_helper(controllers: 'carts', active: 'is-active') -%> <% end %> <%= t('trade.admin.title') %>
<%= content_tag :div, class: 'menu-list' do %> <%= link_to t('trade.admin.promotes.index.title'), { controller: 'trade/admin/promotes' }, class: active_helper(controllers: ['promotes', 'promote_charges', 'promote_goods', 'promote_carts'], active: 'is-active') -%> <% end %> 促销
<%= content_tag :div, class: 'menu-list' do %> <%= link_to t('trade.admin.card_templates.index.title'), { controller: 'trade/admin/card_templates' }, class: active_helper(controllers: ['card_templates', 'cards', 'advances', 'card_promotes'], active: 'is-active') %> <%= link_to t('trade.admin.cashes.index.title'), { controller: 'trade/admin/cashes' }, class: active_helper(controllers: 'cashes', active: 'is-active') %> <%= link_to t('trade.admin.payouts.index.title'), { controller: 'trade/admin/payouts' }, class: active_helper(controllers: 'payouts', active: 'is-active') -%> <% end %> 会员