/spree_admin_bar

Adds an admin bar to a Spree shop front-end to allow an admin user to quickly navigate to the relevant section in the admin pages.

Primary LanguageRubyBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

SpreeAdminBar

Build Status

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:

Screenshot

Background

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.

Installation

  1. Add this extension to your Gemfile with this line:
gem 'spree_admin_bar', github: 'stefansenk/spree_admin_bar'
  1. Install the gem using Bundler:
bundle install
  1. 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. /vendor/assets/stylesheets/spree/frontend/all.css

  1. Restart your server

If your server was running, restart it so that it can find the assets properly.

Testing

First bundle your dependencies, then run rake. 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 rake test_app.

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:

require 'spree_admin_bar/factories'

Contributing

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