From 13cbbcef404e84fe18c15063d17bbc80b820796f Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Thu, 15 Jan 2015 10:26:27 +1100 Subject: [PATCH] Admin Tab Menu: converting .rb to .html.haml.deface Plus a new menu item for enterprise groups. --- app/overrides/add_enterprises_admin_tab.rb | 5 ----- app/overrides/add_order_cycles_admin_tab.rb | 5 ----- .../layouts/admin/add_enterprises_admin_tab.html.haml.deface | 2 ++ .../layouts/admin/add_groups_admin_tab.html.haml.deface | 2 ++ .../admin/add_order_cycles_admin_tab.html.haml.deface | 2 ++ 5 files changed, 6 insertions(+), 10 deletions(-) delete mode 100644 app/overrides/add_enterprises_admin_tab.rb delete mode 100644 app/overrides/add_order_cycles_admin_tab.rb create mode 100644 app/overrides/spree/layouts/admin/add_enterprises_admin_tab.html.haml.deface create mode 100644 app/overrides/spree/layouts/admin/add_groups_admin_tab.html.haml.deface create mode 100644 app/overrides/spree/layouts/admin/add_order_cycles_admin_tab.html.haml.deface diff --git a/app/overrides/add_enterprises_admin_tab.rb b/app/overrides/add_enterprises_admin_tab.rb deleted file mode 100644 index 9fbb00f5f3..0000000000 --- a/app/overrides/add_enterprises_admin_tab.rb +++ /dev/null @@ -1,5 +0,0 @@ -Deface::Override.new(:virtual_path => "spree/layouts/admin", - :name => "add_enterprises_admin_tab", - :insert_bottom => "[data-hook='admin_tabs'], #admin_tabs[data-hook]", - :text => "<%= tab :enterprises, :url => main_app.admin_enterprises_path %>", - :original => '6999548b86c700f2cc5d4f9d297c94b3617fd981') \ No newline at end of file diff --git a/app/overrides/add_order_cycles_admin_tab.rb b/app/overrides/add_order_cycles_admin_tab.rb deleted file mode 100644 index 6e36e413a8..0000000000 --- a/app/overrides/add_order_cycles_admin_tab.rb +++ /dev/null @@ -1,5 +0,0 @@ -Deface::Override.new(:virtual_path => "spree/layouts/admin", - :name => "add_order_cycles_admin_tab", - :insert_bottom => "[data-hook='admin_tabs'], #admin_tabs[data-hook]", - :text => "<%= tab :order_cycles, :url => main_app.admin_order_cycles_path %>", - :original => 'd4e321201ecb543e92192a031c8896a45dde3576') \ No newline at end of file diff --git a/app/overrides/spree/layouts/admin/add_enterprises_admin_tab.html.haml.deface b/app/overrides/spree/layouts/admin/add_enterprises_admin_tab.html.haml.deface new file mode 100644 index 0000000000..cddadabed7 --- /dev/null +++ b/app/overrides/spree/layouts/admin/add_enterprises_admin_tab.html.haml.deface @@ -0,0 +1,2 @@ +/ insert_bottom "[data-hook='admin_tabs'], #admin_tabs[data-hook]" += tab :enterprises, :url => main_app.admin_enterprises_path diff --git a/app/overrides/spree/layouts/admin/add_groups_admin_tab.html.haml.deface b/app/overrides/spree/layouts/admin/add_groups_admin_tab.html.haml.deface new file mode 100644 index 0000000000..8ed9cf55fd --- /dev/null +++ b/app/overrides/spree/layouts/admin/add_groups_admin_tab.html.haml.deface @@ -0,0 +1,2 @@ +/ insert_bottom "[data-hook='admin_tabs'], #admin_tabs[data-hook]" += tab :groups, :url => main_app.admin_enterprise_groups_path diff --git a/app/overrides/spree/layouts/admin/add_order_cycles_admin_tab.html.haml.deface b/app/overrides/spree/layouts/admin/add_order_cycles_admin_tab.html.haml.deface new file mode 100644 index 0000000000..90b9007de5 --- /dev/null +++ b/app/overrides/spree/layouts/admin/add_order_cycles_admin_tab.html.haml.deface @@ -0,0 +1,2 @@ +/ insert_bottom "[data-hook='admin_tabs'], #admin_tabs[data-hook]" += tab :order_cycles, :url => main_app.admin_order_cycles_path