Adds an admin bar to a Spree E-Commerce platform shop front-end, allowing an admin user to quickly navigate to the relevant sections within the site admin pages.
The admin bar gets displayed at the top of each page to users logged in as an admin. It works with following the entities:
Product page screenshot:
We found this simple admin bar really speeds up working on a Spree site. When browsing the site front end, we often found we wanted to jump to the relevant section in the admin to make a small change. This admin bar greatly speeds up the time it takes to navigate to the relevant section in the admin.
- Add this extension to your Gemfile with this line:
gem 'spree_admin_bar', github: 'stefansenk/spree_admin_bar'
- Install the gem using Bundler:
- Copy & run migrations
bundle exec rails g spree_admin_bar:install
Or just add
*= require spree/frontend/spree_admin_bar
to your css file, e.g.
- Restart your server
If your server was running, restart it so that it can find the assets properly.
First bundle your dependencies, then run
rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using
bundle bundle exec rake
When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:
If you'd like to contribute, please take a look at the instructions for installing dependencies and crafting a good pull request.
Copyright (c) 2013-2019 Stefan Senk, released under the New BSD License