adminlte2-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +31 -0
  6. data/Rakefile +2 -0
  7. data/adminlte2-rails.gemspec +22 -0
  8. data/lib/adminlte2-rails.rb +1 -0
  9. data/lib/adminlte2/rails.rb +7 -0
  10. data/lib/adminlte2/rails/engine.rb +6 -0
  11. data/lib/adminlte2/rails/version.rb +5 -0
  12. data/lib/generators/admin_lte/USAGE +8 -0
  13. data/lib/generators/admin_lte/admin_lte_generator.rb +37 -0
  14. data/lib/generators/admin_lte/templates/_admin_lte_2_header.html.erb +150 -0
  15. data/lib/generators/admin_lte/templates/_admin_lte_2_sidebar.html.erb +46 -0
  16. data/lib/generators/admin_lte/templates/admin_lte_2.html.erb +60 -0
  17. data/lib/generators/admin_lte/templates/admin_lte_2_login.html.erb +55 -0
  18. data/vendor/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  19. data/vendor/assets/fonts/glyphicons-halflings-regular.svg +288 -0
  20. data/vendor/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  21. data/vendor/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  22. data/vendor/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  23. data/vendor/assets/images/avatar.png +0 -0
  24. data/vendor/assets/images/avatar04.png +0 -0
  25. data/vendor/assets/images/avatar2.png +0 -0
  26. data/vendor/assets/images/avatar3.png +0 -0
  27. data/vendor/assets/images/avatar5.png +0 -0
  28. data/vendor/assets/images/boxed-bg.jpg +0 -0
  29. data/vendor/assets/images/boxed-bg.png +0 -0
  30. data/vendor/assets/images/credit/american-express.png +0 -0
  31. data/vendor/assets/images/credit/cirrus.png +0 -0
  32. data/vendor/assets/images/credit/mastercard.png +0 -0
  33. data/vendor/assets/images/credit/mestro.png +0 -0
  34. data/vendor/assets/images/credit/paypal.png +0 -0
  35. data/vendor/assets/images/credit/paypal2.png +0 -0
  36. data/vendor/assets/images/credit/visa.png +0 -0
  37. data/vendor/assets/images/default-50x50.gif +0 -0
  38. data/vendor/assets/images/icons.png +0 -0
  39. data/vendor/assets/images/photo1.png +0 -0
  40. data/vendor/assets/images/photo2.png +0 -0
  41. data/vendor/assets/images/user1-128x128.jpg +0 -0
  42. data/vendor/assets/images/user2-160x160.jpg +0 -0
  43. data/vendor/assets/images/user3-128x128.jpg +0 -0
  44. data/vendor/assets/images/user4-128x128.jpg +0 -0
  45. data/vendor/assets/images/user5-128x128.jpg +0 -0
  46. data/vendor/assets/images/user6-128x128.jpg +0 -0
  47. data/vendor/assets/images/user7-128x128.jpg +0 -0
  48. data/vendor/assets/images/user8-128x128.jpg +0 -0
  49. data/vendor/assets/javascripts/.keep +0 -0
  50. data/vendor/assets/javascripts/app.js +523 -0
  51. data/vendor/assets/javascripts/bootstrap.js +2306 -0
  52. data/vendor/assets/stylesheets/.keep +0 -0
  53. data/vendor/assets/stylesheets/AdminLTE.css +4066 -0
  54. data/vendor/assets/stylesheets/bootstrap.css +6570 -0
  55. data/vendor/assets/stylesheets/bootstrap.css.map +1 -0
  56. data/vendor/assets/stylesheets/skins/_all-skins.css +876 -0
  57. data/vendor/assets/stylesheets/skins/_all-skins.min.css +1 -0
  58. data/vendor/assets/stylesheets/skins/skin-black.css +165 -0
  59. data/vendor/assets/stylesheets/skins/skin-black.min.css +1 -0
  60. data/vendor/assets/stylesheets/skins/skin-blue.css +151 -0
  61. data/vendor/assets/stylesheets/skins/skin-blue.min.css +1 -0
  62. data/vendor/assets/stylesheets/skins/skin-green.css +140 -0
  63. data/vendor/assets/stylesheets/skins/skin-green.min.css +1 -0
  64. data/vendor/assets/stylesheets/skins/skin-purple.css +140 -0
  65. data/vendor/assets/stylesheets/skins/skin-purple.min.css +1 -0
  66. data/vendor/assets/stylesheets/skins/skin-red.css +140 -0
  67. data/vendor/assets/stylesheets/skins/skin-red.min.css +1 -0
  68. data/vendor/assets/stylesheets/skins/skin-yellow.css +140 -0
  69. data/vendor/assets/stylesheets/skins/skin-yellow.min.css +1 -0
  70. metadata +140 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b440281ff427a84ff8061d6bad94da20e0f2d8d0
4
+ data.tar.gz: 6e4a4ed56adc1d8751fb404afd33c4187658e8a8
5
+ SHA512:
6
+ metadata.gz: 6dfbcef05995351eb3762a3acd8f18128233b2959b2c8ac6900763cc1ddb33d6c623676ed7b4af50b3381ba2495256525f3f1a879efef96f51ac03b3ab5d6c78
7
+ data.tar.gz: 55eea36dece68a39722a25ab93f0a588886395333b9fff5e7d34636594912dd6e7b2d546d44268ada2f560c61d76246f8122b1b4106425cb698ea7500d3f922b
data/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in adminlte2-rails.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Nicolas Besnard
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # Adminlte2::Rails
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'adminlte2-rails'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install adminlte2-rails
20
+
21
+ ## Usage
22
+
23
+ TODO: Write usage instructions here
24
+
25
+ ## Contributing
26
+
27
+ 1. Fork it ( https://github.com/[my-github-username]/adminlte2-rails/fork )
28
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
29
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
30
+ 4. Push to the branch (`git push origin my-new-feature`)
31
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,22 @@
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require 'adminlte2/rails/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "adminlte2-rails"
7
+ spec.version = AdminLTE2::Rails::VERSION
8
+ spec.authors = ["Nicolas Besnard"]
9
+ spec.email = ["besnard.nicolas@gmail.com"]
10
+ spec.homepage = 'https://github.com/nicolas-besnard/adminlte2-rails'
11
+ spec.summary = %q{Integrates the AdminLTE theme with the Rails asset pipeline}
12
+ spec.description = %q{AdminLTE is a premium Bootstrap theme for Backend.}
13
+ spec.license = "MIT"
14
+
15
+ spec.files = `git ls-files -z`.split("\x0")
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_development_dependency "bundler", "~> 1.7"
21
+ spec.add_development_dependency "rake", "~> 10.0"
22
+ end
@@ -0,0 +1 @@
1
+ require 'adminlte2/rails'
@@ -0,0 +1,7 @@
1
+ require 'adminlte2/rails/version'
2
+ require 'adminlte2/rails/engine'
3
+
4
+ module AdminLTE2
5
+ module Rails
6
+ end
7
+ end
@@ -0,0 +1,6 @@
1
+ module AdminLTE
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module AdminLTE2
2
+ module Rails
3
+ VERSION = '0.0.1'
4
+ end
5
+ end
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Explain the generator
3
+
4
+ Example:
5
+ rails generate admin_lte Thing
6
+
7
+ This will create:
8
+ what/will/it/create
@@ -0,0 +1,37 @@
1
+ class AdminLteGenerator < Rails::Generators::Base
2
+ source_root File.expand_path('../templates', __FILE__)
3
+
4
+ def main
5
+ inject_into_file 'app/assets/javascripts/application.js', "//= require bootstrap\n", before: '//= require_tree .'
6
+ inject_into_file 'app/assets/javascripts/application.js', "//= require app\n", before: '//= require_tree .'
7
+
8
+ inject_into_file 'app/assets/stylesheets/application.css', " *= require bootstrap\n", before: ' *= require_self'
9
+ inject_into_file 'app/assets/stylesheets/application.css', " *= require AdminLTE\n", before: ' *= require_self'
10
+ inject_into_file 'app/assets/stylesheets/application.css', " *= require skins/skin-blue\n", before: ' *= require_self'
11
+
12
+ copy_file '_admin_lte_2_header.html.erb', 'app/views/layouts/_admin_lte_2_header.html.erb'
13
+ copy_file '_admin_lte_2_sidebar.html.erb', 'app/views/layouts/_admin_lte_2_sidebar.html.erb'
14
+ copy_file 'admin_lte_2.html.erb', 'app/views/layouts/admin_lte_2.html.erb'
15
+
16
+ if yes?('Add layout to ApplicationController ? (y/n) ')
17
+ inject_into_file 'app/controllers/application_controller.rb', "\n layout 'admin_lte_2'\n", after: 'class ApplicationController < ActionController::Base'
18
+ end
19
+
20
+ if yes?('Devise ? (y/n) ')
21
+ gem 'devise'
22
+
23
+ run 'bundle install'
24
+ generate 'devise:install'
25
+
26
+ environment "
27
+ config.to_prepare do
28
+ Devise::SessionsController.layout 'admin_lte_2_login'
29
+ end
30
+ "
31
+
32
+ inject_into_file 'app/controllers/application_controller.rb', "\n before_action :authenticate_user!\n", after: 'class ApplicationController < ActionController::Base'
33
+
34
+ copy_file 'admin_lte_2_login.html.erb', 'app/views/layouts/admin_lte_2_login.html.erb'
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,150 @@
1
+ <!-- Main Header -->
2
+ <header class="main-header">
3
+
4
+ <!-- Logo -->
5
+ <a href="/" class="logo"><b>Admin</b>LTE</a>
6
+
7
+ <!-- Header Navbar -->
8
+ <nav class="navbar navbar-static-top" role="navigation">
9
+ <!-- Sidebar toggle button-->
10
+ <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
11
+ <span class="sr-only">Toggle navigation</span>
12
+ </a>
13
+ <!-- Navbar Right Menu -->
14
+ <div class="navbar-custom-menu">
15
+ <ul class="nav navbar-nav">
16
+ <!-- Messages: style can be found in dropdown.less-->
17
+ <li class="dropdown messages-menu">
18
+ <!-- Menu toggle button -->
19
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">
20
+ <i class="fa fa-envelope-o"></i>
21
+ <span class="label label-success">4</span>
22
+ </a>
23
+ <ul class="dropdown-menu">
24
+ <li class="header">You have 4 messages</li>
25
+ <li>
26
+ <!-- inner menu: contains the messages -->
27
+ <ul class="menu">
28
+ <li><!-- start message -->
29
+ <a href="#">
30
+ <div class="pull-left">
31
+ <!-- User Image -->
32
+ <img src="/assets/user2-160x160.jpg" class="img-circle" alt="User Image"/>
33
+ </div>
34
+ <!-- Message title and timestamp -->
35
+ <h4>
36
+ Support Team
37
+ <small><i class="fa fa-clock-o"></i> 5 mins</small>
38
+ </h4>
39
+ <!-- The message -->
40
+ <p>Why not buy a new awesome theme?</p>
41
+ </a>
42
+ </li><!-- end message -->
43
+ </ul><!-- /.menu -->
44
+ </li>
45
+ <li class="footer"><a href="#">See All Messages</a></li>
46
+ </ul>
47
+ </li><!-- /.messages-menu -->
48
+
49
+ <!-- Notifications Menu -->
50
+ <li class="dropdown notifications-menu">
51
+ <!-- Menu toggle button -->
52
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">
53
+ <i class="fa fa-bell-o"></i>
54
+ <span class="label label-warning">10</span>
55
+ </a>
56
+ <ul class="dropdown-menu">
57
+ <li class="header">You have 10 notifications</li>
58
+ <li>
59
+ <!-- Inner Menu: contains the notifications -->
60
+ <ul class="menu">
61
+ <li><!-- start notification -->
62
+ <a href="#">
63
+ <i class="fa fa-users text-aqua"></i> 5 new members joined today
64
+ </a>
65
+ </li><!-- end notification -->
66
+ </ul>
67
+ </li>
68
+ <li class="footer"><a href="#">View all</a></li>
69
+ </ul>
70
+ </li>
71
+ <!-- Tasks Menu -->
72
+ <li class="dropdown tasks-menu">
73
+ <!-- Menu Toggle Button -->
74
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">
75
+ <i class="fa fa-flag-o"></i>
76
+ <span class="label label-danger">9</span>
77
+ </a>
78
+ <ul class="dropdown-menu">
79
+ <li class="header">You have 9 tasks</li>
80
+ <li>
81
+ <!-- Inner menu: contains the tasks -->
82
+ <ul class="menu">
83
+ <li><!-- Task item -->
84
+ <a href="#">
85
+ <!-- Task title and progress text -->
86
+ <h3>
87
+ Design some buttons
88
+ <small class="pull-right">20%</small>
89
+ </h3>
90
+ <!-- The progress bar -->
91
+ <div class="progress xs">
92
+ <!-- Change the css width attribute to simulate progress -->
93
+ <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
94
+ <span class="sr-only">20% Complete</span>
95
+ </div>
96
+ </div>
97
+ </a>
98
+ </li><!-- end task item -->
99
+ </ul>
100
+ </li>
101
+ <li class="footer">
102
+ <a href="#">View all tasks</a>
103
+ </li>
104
+ </ul>
105
+ </li>
106
+ <!-- User Account Menu -->
107
+ <li class="dropdown user user-menu">
108
+ <!-- Menu Toggle Button -->
109
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">
110
+ <!-- The user image in the navbar-->
111
+ <img src="/assets/user2-160x160.jpg" class="user-image" alt="User Image"/>
112
+ <!-- hidden-xs hides the username on small devices so only the image appears. -->
113
+ <span class="hidden-xs">Alexander Pierce</span>
114
+ </a>
115
+ <ul class="dropdown-menu">
116
+ <!-- The user image in the menu -->
117
+ <li class="user-header">
118
+ <img src="/assets/user2-160x160.jpg" class="img-circle" alt="User Image" />
119
+ <p>
120
+ Alexander Pierce - Web Developer
121
+ <small>Member since Nov. 2012</small>
122
+ </p>
123
+ </li>
124
+ <!-- Menu Body -->
125
+ <li class="user-body">
126
+ <div class="col-xs-4 text-center">
127
+ <a href="#">Followers</a>
128
+ </div>
129
+ <div class="col-xs-4 text-center">
130
+ <a href="#">Sales</a>
131
+ </div>
132
+ <div class="col-xs-4 text-center">
133
+ <a href="#">Friends</a>
134
+ </div>
135
+ </li>
136
+ <!-- Menu Footer-->
137
+ <li class="user-footer">
138
+ <div class="pull-left">
139
+ <a href="#" class="btn btn-default btn-flat">Profile</a>
140
+ </div>
141
+ <div class="pull-right">
142
+ <a href="#" class="btn btn-default btn-flat">Sign out</a>
143
+ </div>
144
+ </li>
145
+ </ul>
146
+ </li>
147
+ </ul>
148
+ </div>
149
+ </nav>
150
+ </header>
@@ -0,0 +1,46 @@
1
+ <!-- Left side column. contains the logo and sidebar -->
2
+ <aside class="main-sidebar">
3
+
4
+ <!-- sidebar: style can be found in sidebar.less -->
5
+ <section class="sidebar">
6
+
7
+ <!-- Sidebar user panel (optional) -->
8
+ <div class="user-panel">
9
+ <div class="pull-left image">
10
+ <img src="/assets/user2-160x160.jpg" class="img-circle" alt="User Image" />
11
+ </div>
12
+ <div class="pull-left info">
13
+ <p>Alexander Pierce</p>
14
+ <!-- Status -->
15
+ <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
16
+ </div>
17
+ </div>
18
+
19
+ <!-- search form (Optional) -->
20
+ <form action="#" method="get" class="sidebar-form">
21
+ <div class="input-group">
22
+ <input type="text" name="q" class="form-control" placeholder="Search..."/>
23
+ <span class="input-group-btn">
24
+ <button type='submit' name='search' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
25
+ </span>
26
+ </div>
27
+ </form>
28
+ <!-- /.search form -->
29
+
30
+ <!-- Sidebar Menu -->
31
+ <ul class="sidebar-menu">
32
+ <li class="header">HEADER</li>
33
+ <!-- Optionally, you can add icons to the links -->
34
+ <li class="active"><a href="#"><span>Link</span></a><</li>
35
+ <li><a href="#"><span>Another Link</span></a></li>
36
+ <li class="treeview">
37
+ <a href="#"><span>Multilevel</span> <i class="fa fa-angle-left pull-right"></i></a>
38
+ <ul class="treeview-menu">
39
+ <li><a href="#">Link in level 2</a></li>
40
+ <li><a href="#">Link in level 2</a></li>
41
+ </ul>
42
+ </li>
43
+ </ul><!-- /.sidebar-menu -->
44
+ </section>
45
+ <!-- /.sidebar -->
46
+ </aside>
@@ -0,0 +1,60 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>AdminLTE 2 | Dashboard</title>
6
+ <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
7
+ <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
8
+ <link href="http://code.ionicframework.com/ionicons/2.0.0/css/ionicons.min.css" rel="stylesheet" type="text/css" />
9
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
10
+ <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
11
+ <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
12
+ <!--[if lt IE 9]>
13
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
14
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
15
+ <![endif]-->
16
+ <%= csrf_meta_tags %>
17
+ </head>
18
+
19
+ <body class="skin-blue">
20
+ <div class="wrapper">
21
+
22
+ <%= render partial: 'layouts/admin_lte_2_header' %>
23
+
24
+ <%= render partial: 'layouts/admin_lte_2_sidebar' %>
25
+
26
+ <!-- Content Wrapper. Contains page content -->
27
+ <div class="content-wrapper">
28
+ <!-- Content Header (Page header) -->
29
+ <section class="content-header">
30
+ <h1>
31
+ Page Header
32
+ <small>Optional description</small>
33
+ </h1>
34
+ <ol class="breadcrumb">
35
+ <li><a href="#"><i class="fa fa-dashboard"></i> Level</a></li>
36
+ <li class="active">Here</li>
37
+ </ol>
38
+ </section>
39
+
40
+ <!-- Main content -->
41
+ <section class="content">
42
+ <%= yield %>
43
+ </section><!-- /.content -->
44
+ </div><!-- /.content-wrapper -->
45
+
46
+ <!-- Main Footer -->
47
+ <footer class="main-footer">
48
+ <!-- To the right -->
49
+ <div class="pull-right hidden-xs">
50
+ Anything you want
51
+ </div>
52
+ <!-- Default to the left -->
53
+ <strong>Copyright &copy; 2015 <a href="#">Company</a>.</strong> All rights reserved.
54
+ </footer>
55
+
56
+ </div><!-- ./wrapper -->
57
+
58
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
59
+ </body>
60
+ </html>