Convert orders submenu partial to haml

This commit is contained in:
luisramos0
2019-12-16 16:59:08 +00:00
parent fb4f96eb4a
commit b4e6c5307e
2 changed files with 6 additions and 9 deletions

View File

@@ -1,9 +0,0 @@
<% content_for :sub_menu do %>
<ul id="sub_nav" data-hook="admin_order_sub_tabs" class="inline-menu">
<%= tab :orders, :match_path => '/orders' %>
<%= tab :bulk_order_management, :match_path => '/orders/bulk_management' %>
<% if subscriptions_enabled? %>
<%= tab :subscriptions, :match_path => '/subscriptions', url: main_app.admin_subscriptions_path %>
<% end %>
</ul>
<% end %>

View File

@@ -0,0 +1,6 @@
- content_for :sub_menu do
%ul#sub_nav.inline-menu
= tab :orders, :match_path => '/orders'
= tab :bulk_order_management, :match_path => '/orders/bulk_management'
- if subscriptions_enabled?
= tab :subscriptions, :match_path => '/subscriptions', url: main_app.admin_subscriptions_path