• Stars
    star
    155
  • Rank 240,864 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 8 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Injects the gentelella theme and javascript files into Rails assets pipeline

Gentelella Rails

This is mostly an experimental effort to inject the Gentelella theme into Rails assets pipeline.

My goal in building this gem was to learn:

  • how to automate bower updates
  • package up only the files needed for the gem to function in production
  • load everything up with just one or two requires in the Rails app that uses it

Beware that this gem furnishes a fairly comprehensive theme and pulls in many other libraries such as:

  • jquery and jquery_ujs
  • bootstrap-sass and font-awesome-sass
  • icheck
  • nprogress
  • moment JS
  • bootstrap date range picker
  • fastclick
  • ChartJS
  • jquery Flot
  • DateJS
  • Switchery
  • Select2
  • Parsley JS

Where possible, I utilized well-maintained Rails gems for the above. However, if the gems were out of date, I utilized the Bower supplied version.

You may also find the demo Rails 5.x project on github

Theme Demo

Gentelella Bootstrap Admin Template

Template Demo

Installation

Add the following to your Rails application's Gemfile and bundle install:

gem 'gentelella-rails'

Then perform the following:

bundle install
rails g gentelella:install

NOTE: If the generator fails to work, then make sure you stop Spring: spring stop and then try again.

Add the following to your assets/javascripts/application.js

//= require gentelella
//= require gentelella-custom

If you're working with jquery.vmap, then your application.js will look something like this:

//= require gentelella
//= require jqvmap/maps/jquery.vmap.world
//= require jqvmap/maps/jquery.vmap.usa
//= require jquery.vmap.sampledata
//= require gentelella-custom

There is no need to include bootstrap-sprockets, font-awesome, jquery, etc. as these are all included via the gem when you "require gentelella"

NOTE: gentella-custom is meant to be edited! If you find things breaking from include/import lines of this file, comment out the offending lines. gentella-custom is where you can place all project-specific scripts.

Finally, add the stylesheet directives to your assets/stylesheets/application.scss

@import "gentelella";
@import "gentelella-custom";

This will pull in all necessary stylesheets including bootstrap, font-awesome, etc., which the theme uses.

gem 'gentelella-rails'

Contributing

I don't have any personal plans to utilize this theme in my projects, so if this project is of interest, fork and send pull requests and I will publish!

The gem should be fairly easy to update to latest JS libraries as they come available. If the JS or CSS libraries are via a rubygem, then:

bundle update GEMNAME

If the libraries are supplied by bower then:

rake bower:update
rake bower:vendor

Credits

The original theme was developed by Colorlib and released under MIT license.

License

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

More Repositories

1

lazy_registration_demos

Lazy Registration Demos
Ruby
44
star
2

gentelella-rails-demo

A Rails 5.x project that demonstrates the gentelella-rails gem
29
star
3

rails_wordpress

A Rails Engine that enables you to easily wire up a Rails app to an existing WordPress database
Ruby
23
star
4

bootstrap-scripts

Scripts to bootstrap a new machine.
Shell
21
star
5

sequel_plus

Plugins and Extensions for Sequel
Ruby
17
star
6

flowmor_router

FlowmorRouter is a Rails::Engine that enables ActiveRecord Models to route themselves in Rails 4.x applications.
Ruby
14
star
7

quantitative

Quantitative and Statistical analysis toolset for Ruby 3.x
Ruby
12
star
8

social_media

Social Media allows publishing to any number of social media services using one common API.
Ruby
11
star
9

elemental

Elemental provides enumerated collection of elements that allow you to associate ruby symbols to arbitrary values, thus allowing your code to "think" symbolically and unambiguously while giving you the means to easily display what end-users need to see.
Ruby
9
star
10

spree-price-bucket-shipping-calculator

The Price Bucket Shipping Rate Calculator allows you to define shipping costs based on the order's sub-total and shipping method.
Ruby
8
star
11

binance

Binance API wrappers for Crystal Language
Crystal
7
star
12

crypto

Tools for cryptoassets
Ruby
5
star
13

jasonette-rails

A extension of the Jbuilder framework to facilitate building Jasonette flavored JSON in Rails
Ruby
5
star
14

benchmarks

Various data and projects utilized to do benchmarking
Ruby
4
star
15

medium-editor-markdown-rails

Adds the medium-editor-markdown plugin to the Rails assets pipeline.
Ruby
4
star
16

medium-editor-insert-plugin-rails

Adds the medium-editor-insert-plugin to the Rails assets pipeline.
Ruby
4
star
17

smallfoot

Crystal project building smallest Docker container.
Crystal
3
star
18

mashup

A Padrino/Sinatra app that displays various RSS feeds on one page.
Ruby
3
star
19

dinero

Dinero automates the process of logging into banking and financial websites to collect account balances.
Ruby
3
star
20

astroid

Implementing long-running processes in background with Ramaze, Daemons, and Beanstalkd
2
star
21

ramaze-protos

Various proto templates for Ramaze
Ruby
2
star
22

bookmarkable

A web service to track your bookmarks
Ruby
2
star
23

cobinhood

Unofficial Ruby API wrapper for Cobinhood (https://cobinhood.com) exchange
Ruby
2
star
24

cashmere

CAS 2.0 Server implemented in Ruby on Ramaze
Ruby
2
star
25

ramaze-sequel-proto-experimental

Experimental ramaze project for developing rake db tasks for sequel
Ruby
2
star
26

git-hooks

Various git hooks I use in my projects
Shell
1
star