Sha256: 0e087434f18873fda6c567cdbc1f32a2848073e9bdfb97b9a8cf358105ab2481
Contents?: true
Size: 1.54 KB
Versions: 12
Compression:
Stored size: 1.54 KB
Contents
<nav class="menu"> <ul data-hook="admin_order_tabs"> <% if can? :update, @order %> <li<%== ' class="active"' if current == 'Order Details' %> data-hook='admin_order_tabs_order_details'> <%= link_to_with_icon 'edit', Spree.t(:order_details), edit_admin_order_url(@order) %> </li> <% end %> <% if can?(:update, @order) && checkout_steps.include?("address") %> <li<%== ' class="active"' if current == 'Customer Details' %> data-hook='admin_order_tabs_customer_details'> <%= link_to_with_icon 'user', Spree.t(:customer_details), admin_order_customer_url(@order) %> </li> <% end %> <% if can? :index, Spree::Adjustment %> <li<%== ' class="active"' if current == 'Adjustments' %> data-hook='admin_order_tabs_adjustments'> <%= link_to_with_icon 'cogs', Spree.t(:adjustments), admin_order_adjustments_url(@order) %> </li> <% end %> <% if can?(:index, Spree::Payment) %> <li<%== ' class="active"' if current == 'Payments' %> data-hook='admin_order_tabs_payments'> <%= link_to_with_icon 'credit-card', Spree.t(:payments), admin_order_payments_url(@order) %> </li> <% end %> <% if can? :index, Spree::ReturnAuthorization %> <% if @order.completed? %> <li<%== ' class="active"' if current == 'Return Authorizations' %> data-hook='admin_order_tabs_return_authorizations'> <%= link_to_with_icon 'share', Spree.t(:return_authorizations), admin_order_return_authorizations_url(@order) %> </li> <% end %> <% end %> </ul> </nav>
Version data entries
12 entries across 12 versions & 1 rubygems