AdminlteTheme

A gem that simplifies your adminLTE setup on ruby on rails.

Installation

Add these to your gemfile

gem 'jquery-rails'
gem 'bootstrap-sass'
gem "font-awesome-rails"
gem 'adminlte_theme'

I didn't include those gem as dependencies to allow you to customize and manage your gems

Add this to your application.js

//= require jquery
//= require bootstrap-sprockets
//= require adminlte

Then in your application.css.scss

@import "bootstrap-sprockets";
@import "bootstrap";
@import 'font-awesome';
@import "AdminLTE";
@import "AdminLTE/skins/skin-green";

HTMLs

See this Admin LTE Installation Guide to configure template.

You might want to see how POSko used this gem.

You can use this file structure:

app/
  views/
    layouts/
      application.html.erb
      _footer.html.erb
      _header.html.erb
      _control_sidebar.html.erb
      _sidebar.html.erb

Render those partial in application.html.erb

TODOs

  • Create generator
  • Spec! Spec! Spec!

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/neume/adminlte_theme. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the AdminlteTheme project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.