Admin Tab Menu: converting .rb to .html.haml.deface

Plus a new menu item for enterprise groups.
This commit is contained in:
Maikel Linke
2015-01-15 10:26:27 +11:00
parent 949808e839
commit 13cbbcef40
5 changed files with 6 additions and 10 deletions

View File

@@ -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')

View File

@@ -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')

View File

@@ -0,0 +1,2 @@
/ insert_bottom "[data-hook='admin_tabs'], #admin_tabs[data-hook]"
= tab :enterprises, :url => main_app.admin_enterprises_path

View File

@@ -0,0 +1,2 @@
/ insert_bottom "[data-hook='admin_tabs'], #admin_tabs[data-hook]"
= tab :groups, :url => main_app.admin_enterprise_groups_path

View File

@@ -0,0 +1,2 @@
/ insert_bottom "[data-hook='admin_tabs'], #admin_tabs[data-hook]"
= tab :order_cycles, :url => main_app.admin_order_cycles_path