Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

move deface to override directory

  • Loading branch information...
commit 19cc8b2bfceedcbbee15013d6518004a686e1fdb 1 parent fa7b033
@libkazz authored
View
5 app/overrides/import_products_navigation_bar.rb
@@ -0,0 +1,5 @@
+Deface::Override.new(:virtual_path => "spree/layouts/admin",
+ :name => "products_import_navigation_bar",
+ :insert_bottom => "[data-hook='admin_tabs'], #admin_tabs[data-hook]",
+ :text => "<%= tab(:product_imports, :url => admin_product_imports_path) %>",
+ :disabled => false)
View
1  lib/import_products.rb
@@ -1,5 +1,4 @@
require 'spree_core'
-require 'import_products_hooks'
require 'delayed_job'
module ImportProducts
View
6 lib/import_products_hooks.rb
@@ -1,6 +0,0 @@
-class ImportProductsHooks < Spree::ThemeSupport::HookListener
- # custom hooks go here
- insert_after :admin_tabs do
- %(<%= tab(:product_imports) %>)
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.