adminlte_theme 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/Gemfile.lock +54 -0
- data/README.md +12 -0
- data/adminlte_theme.gemspec +2 -0
- data/lib/adminlte_theme/version.rb +1 -1
- data/lib/generators/adminlte_theme/adminlte_theme_generator.rb +29 -0
- data/lib/generators/adminlte_theme/templates/layouts/_control_sidebar.html.erb +190 -0
- data/lib/generators/adminlte_theme/templates/layouts/_footer.html.erb +8 -0
- data/lib/generators/adminlte_theme/templates/layouts/_header.html.erb +264 -0
- data/lib/generators/adminlte_theme/templates/layouts/_sidebar.html.erb +41 -0
- data/lib/generators/adminlte_theme/templates/layouts/adminlte_theme.html.erb +26 -0
- metadata +23 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 718bf7423d337e80a966f418f740ba7c408d4db2
|
4
|
+
data.tar.gz: dfba0145cc245979de3f0285d86f786dd71b8436
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25c046c3ab6cd08ddbaa69ce147fb499091cb286a68606567f6643f009f4d06b98325b76fb7746a23e0d4f7f81e37dec03ed89fb12e86e78aa719d185522d3b3
|
7
|
+
data.tar.gz: ef033469b6e6d8de5b1a0a7db3bce312522754f14b307cbe19e476c44ec01c2ce1724da8c0fc6766dc4bf1c91d6ac806545a1e7c2d34356a0496b5518ab1dd64
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.4.3
|
data/Gemfile.lock
CHANGED
@@ -6,7 +6,56 @@ PATH
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
+
actionpack (5.2.0)
|
10
|
+
actionview (= 5.2.0)
|
11
|
+
activesupport (= 5.2.0)
|
12
|
+
rack (~> 2.0)
|
13
|
+
rack-test (>= 0.6.3)
|
14
|
+
rails-dom-testing (~> 2.0)
|
15
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
16
|
+
actionview (5.2.0)
|
17
|
+
activesupport (= 5.2.0)
|
18
|
+
builder (~> 3.1)
|
19
|
+
erubi (~> 1.4)
|
20
|
+
rails-dom-testing (~> 2.0)
|
21
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
22
|
+
activesupport (5.2.0)
|
23
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
24
|
+
i18n (>= 0.7, < 2)
|
25
|
+
minitest (~> 5.1)
|
26
|
+
tzinfo (~> 1.1)
|
27
|
+
builder (3.2.3)
|
28
|
+
concurrent-ruby (1.0.5)
|
29
|
+
crass (1.0.4)
|
9
30
|
diff-lcs (1.3)
|
31
|
+
erubi (1.7.1)
|
32
|
+
generator_spec (0.9.4)
|
33
|
+
activesupport (>= 3.0.0)
|
34
|
+
railties (>= 3.0.0)
|
35
|
+
i18n (1.0.1)
|
36
|
+
concurrent-ruby (~> 1.0)
|
37
|
+
loofah (2.2.2)
|
38
|
+
crass (~> 1.0.2)
|
39
|
+
nokogiri (>= 1.5.9)
|
40
|
+
method_source (0.9.0)
|
41
|
+
mini_portile2 (2.3.0)
|
42
|
+
minitest (5.11.3)
|
43
|
+
nokogiri (1.8.2)
|
44
|
+
mini_portile2 (~> 2.3.0)
|
45
|
+
rack (2.0.5)
|
46
|
+
rack-test (1.0.0)
|
47
|
+
rack (>= 1.0, < 3)
|
48
|
+
rails-dom-testing (2.0.3)
|
49
|
+
activesupport (>= 4.2.0)
|
50
|
+
nokogiri (>= 1.6)
|
51
|
+
rails-html-sanitizer (1.0.4)
|
52
|
+
loofah (~> 2.2, >= 2.2.2)
|
53
|
+
railties (5.2.0)
|
54
|
+
actionpack (= 5.2.0)
|
55
|
+
activesupport (= 5.2.0)
|
56
|
+
method_source
|
57
|
+
rake (>= 0.8.7)
|
58
|
+
thor (>= 0.18.1, < 2.0)
|
10
59
|
rake (10.5.0)
|
11
60
|
rspec (3.7.0)
|
12
61
|
rspec-core (~> 3.7.0)
|
@@ -21,6 +70,10 @@ GEM
|
|
21
70
|
diff-lcs (>= 1.2.0, < 2.0)
|
22
71
|
rspec-support (~> 3.7.0)
|
23
72
|
rspec-support (3.7.1)
|
73
|
+
thor (0.20.0)
|
74
|
+
thread_safe (0.3.6)
|
75
|
+
tzinfo (1.2.5)
|
76
|
+
thread_safe (~> 0.1)
|
24
77
|
|
25
78
|
PLATFORMS
|
26
79
|
ruby
|
@@ -28,6 +81,7 @@ PLATFORMS
|
|
28
81
|
DEPENDENCIES
|
29
82
|
adminlte_theme!
|
30
83
|
bundler (~> 1.16)
|
84
|
+
generator_spec (~> 0.9.4)
|
31
85
|
rake (~> 10.0)
|
32
86
|
rspec (~> 3.0)
|
33
87
|
|
data/README.md
CHANGED
@@ -30,6 +30,18 @@ Then in your ```application.css.scss```
|
|
30
30
|
@import "AdminLTE/skins/skin-green";
|
31
31
|
```
|
32
32
|
|
33
|
+
Generate your layout.
|
34
|
+
``` sh
|
35
|
+
rails g adminlte_theme layout_name
|
36
|
+
```
|
37
|
+
|
38
|
+
```layout_name``` is your layout file name. You can also use ```application``` to use the default layout but be aware that it will be overwritten by this command.
|
39
|
+
|
40
|
+
The command will create a file structure similar below but with ```layout_name.html.erb``` instead of ```application.html.erb```.
|
41
|
+
|
42
|
+
Some ```image_tag``` were commented out because temporary adminlte image files were not included on the pipeline by default.
|
43
|
+
|
44
|
+
|
33
45
|
### HTMLs
|
34
46
|
See this [Admin LTE Installation Guide](https://adminlte.io/docs/2.4/installation) to configure template.
|
35
47
|
|
data/adminlte_theme.gemspec
CHANGED
@@ -33,4 +33,6 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_development_dependency "bundler", "~> 1.16"
|
34
34
|
spec.add_development_dependency "rake", "~> 10.0"
|
35
35
|
spec.add_development_dependency "rspec", "~> 3.0"
|
36
|
+
spec.add_development_dependency "generator_spec", "~>0.9.4"
|
37
|
+
|
36
38
|
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
class AdminlteThemeGenerator < Rails::Generators::NamedBase
|
2
|
+
source_root File.expand_path('../templates', __FILE__)
|
3
|
+
class_option :with_datatable, type: :boolean, default: false, description: "Add datatable"
|
4
|
+
# argument :main_layout, type: :string
|
5
|
+
|
6
|
+
# I can't make it work.
|
7
|
+
# hook_for :orm
|
8
|
+
def generate_layout
|
9
|
+
template "layouts/adminlte_theme.html.erb", "app/views/layouts/#{name}.html.erb"
|
10
|
+
template "layouts/_control_sidebar.html.erb", "app/views/layouts/_control_sidebar.html.erb"
|
11
|
+
template "layouts/_header.html.erb", "app/views/layouts/_header.html.erb"
|
12
|
+
template "layouts/_footer.html.erb", "app/views/layouts/_footer.html.erb"
|
13
|
+
template "layouts/_sidebar.html.erb", "app/views/layouts/_sidebar.html.erb"
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def objects
|
20
|
+
@objects ||= name.underscore.pluralize
|
21
|
+
end
|
22
|
+
|
23
|
+
def object
|
24
|
+
@object ||= objects.singularize
|
25
|
+
end
|
26
|
+
def with_datatable?
|
27
|
+
options.with_datatable.present?
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,190 @@
|
|
1
|
+
<aside class="control-sidebar control-sidebar-dark">
|
2
|
+
<!-- Create the tabs -->
|
3
|
+
<ul class="nav nav-tabs nav-justified control-sidebar-tabs">
|
4
|
+
<li><a href="###control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
|
5
|
+
<li><a href="###control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
|
6
|
+
</ul>
|
7
|
+
<!-- Tab panes -->
|
8
|
+
<div class="tab-content">
|
9
|
+
<!-- Home tab content -->
|
10
|
+
<div class="tab-pane" id="control-sidebar-home-tab">
|
11
|
+
<h3 class="control-sidebar-heading">Recent Activity</h3>
|
12
|
+
<ul class="control-sidebar-menu">
|
13
|
+
<li>
|
14
|
+
<a href="##javascript:void(0)">
|
15
|
+
<i class="menu-icon fa fa-birthday-cake bg-red"></i>
|
16
|
+
|
17
|
+
<div class="menu-info">
|
18
|
+
<h4 class="control-sidebar-subheading">Langdon's Birthday</h4>
|
19
|
+
|
20
|
+
<p>Will be 23 on April 24th</p>
|
21
|
+
</div>
|
22
|
+
</a>
|
23
|
+
</li>
|
24
|
+
<li>
|
25
|
+
<a href="##javascript:void(0)">
|
26
|
+
<i class="menu-icon fa fa-user bg-yellow"></i>
|
27
|
+
|
28
|
+
<div class="menu-info">
|
29
|
+
<h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4>
|
30
|
+
|
31
|
+
<p>New phone +1(800)555-1234</p>
|
32
|
+
</div>
|
33
|
+
</a>
|
34
|
+
</li>
|
35
|
+
<li>
|
36
|
+
<a href="##javascript:void(0)">
|
37
|
+
<i class="menu-icon fa fa-envelope-o bg-light-blue"></i>
|
38
|
+
|
39
|
+
<div class="menu-info">
|
40
|
+
<h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4>
|
41
|
+
|
42
|
+
<p>nora@example.com</p>
|
43
|
+
</div>
|
44
|
+
</a>
|
45
|
+
</li>
|
46
|
+
<li>
|
47
|
+
<a href="##javascript:void(0)">
|
48
|
+
<i class="menu-icon fa fa-file-code-o bg-green"></i>
|
49
|
+
|
50
|
+
<div class="menu-info">
|
51
|
+
<h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4>
|
52
|
+
|
53
|
+
<p>Execution time 5 seconds</p>
|
54
|
+
</div>
|
55
|
+
</a>
|
56
|
+
</li>
|
57
|
+
</ul>
|
58
|
+
<!-- /.control-sidebar-menu -->
|
59
|
+
|
60
|
+
<h3 class="control-sidebar-heading">Tasks Progress</h3>
|
61
|
+
<ul class="control-sidebar-menu">
|
62
|
+
<li>
|
63
|
+
<a href="##javascript:void(0)">
|
64
|
+
<h4 class="control-sidebar-subheading">
|
65
|
+
Custom Template Design
|
66
|
+
<span class="label label-danger pull-right">70%</span>
|
67
|
+
</h4>
|
68
|
+
|
69
|
+
<div class="progress progress-xxs">
|
70
|
+
<div class="progress-bar progress-bar-danger" style="width: 70%"></div>
|
71
|
+
</div>
|
72
|
+
</a>
|
73
|
+
</li>
|
74
|
+
<li>
|
75
|
+
<a href="##javascript:void(0)">
|
76
|
+
<h4 class="control-sidebar-subheading">
|
77
|
+
Update Resume
|
78
|
+
<span class="label label-success pull-right">95%</span>
|
79
|
+
</h4>
|
80
|
+
|
81
|
+
<div class="progress progress-xxs">
|
82
|
+
<div class="progress-bar progress-bar-success" style="width: 95%"></div>
|
83
|
+
</div>
|
84
|
+
</a>
|
85
|
+
</li>
|
86
|
+
<li>
|
87
|
+
<a href="##javascript:void(0)">
|
88
|
+
<h4 class="control-sidebar-subheading">
|
89
|
+
Laravel Integration
|
90
|
+
<span class="label label-warning pull-right">50%</span>
|
91
|
+
</h4>
|
92
|
+
|
93
|
+
<div class="progress progress-xxs">
|
94
|
+
<div class="progress-bar progress-bar-warning" style="width: 50%"></div>
|
95
|
+
</div>
|
96
|
+
</a>
|
97
|
+
</li>
|
98
|
+
<li>
|
99
|
+
<a href="##javascript:void(0)">
|
100
|
+
<h4 class="control-sidebar-subheading">
|
101
|
+
Back End Framework
|
102
|
+
<span class="label label-primary pull-right">68%</span>
|
103
|
+
</h4>
|
104
|
+
|
105
|
+
<div class="progress progress-xxs">
|
106
|
+
<div class="progress-bar progress-bar-primary" style="width: 68%"></div>
|
107
|
+
</div>
|
108
|
+
</a>
|
109
|
+
</li>
|
110
|
+
</ul>
|
111
|
+
<!-- /.control-sidebar-menu -->
|
112
|
+
|
113
|
+
</div>
|
114
|
+
<!-- /.tab-pane -->
|
115
|
+
<!-- Stats tab content -->
|
116
|
+
<div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
|
117
|
+
<!-- /.tab-pane -->
|
118
|
+
<!-- Settings tab content -->
|
119
|
+
<div class="tab-pane" id="control-sidebar-settings-tab">
|
120
|
+
<form method="post">
|
121
|
+
<h3 class="control-sidebar-heading">General Settings</h3>
|
122
|
+
|
123
|
+
<div class="form-group">
|
124
|
+
<label class="control-sidebar-subheading">
|
125
|
+
Report panel usage
|
126
|
+
<input type="checkbox" class="pull-right" checked>
|
127
|
+
</label>
|
128
|
+
|
129
|
+
<p>
|
130
|
+
Some information about this general settings option
|
131
|
+
</p>
|
132
|
+
</div>
|
133
|
+
<!-- /.form-group -->
|
134
|
+
|
135
|
+
<div class="form-group">
|
136
|
+
<label class="control-sidebar-subheading">
|
137
|
+
Allow mail redirect
|
138
|
+
<input type="checkbox" class="pull-right" checked>
|
139
|
+
</label>
|
140
|
+
|
141
|
+
<p>
|
142
|
+
Other sets of options are available
|
143
|
+
</p>
|
144
|
+
</div>
|
145
|
+
<!-- /.form-group -->
|
146
|
+
|
147
|
+
<div class="form-group">
|
148
|
+
<label class="control-sidebar-subheading">
|
149
|
+
Expose author name in posts
|
150
|
+
<input type="checkbox" class="pull-right" checked>
|
151
|
+
</label>
|
152
|
+
|
153
|
+
<p>
|
154
|
+
Allow the user to show his name in blog posts
|
155
|
+
</p>
|
156
|
+
</div>
|
157
|
+
<!-- /.form-group -->
|
158
|
+
|
159
|
+
<h3 class="control-sidebar-heading">Chat Settings</h3>
|
160
|
+
|
161
|
+
<div class="form-group">
|
162
|
+
<label class="control-sidebar-subheading">
|
163
|
+
Show me as online
|
164
|
+
<input type="checkbox" class="pull-right" checked>
|
165
|
+
</label>
|
166
|
+
</div>
|
167
|
+
<!-- /.form-group -->
|
168
|
+
|
169
|
+
<div class="form-group">
|
170
|
+
<label class="control-sidebar-subheading">
|
171
|
+
Turn off notifications
|
172
|
+
<input type="checkbox" class="pull-right">
|
173
|
+
</label>
|
174
|
+
</div>
|
175
|
+
<!-- /.form-group -->
|
176
|
+
|
177
|
+
<div class="form-group">
|
178
|
+
<label class="control-sidebar-subheading">
|
179
|
+
Delete chat history
|
180
|
+
<a href="##javascript:void(0)" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>
|
181
|
+
</label>
|
182
|
+
</div>
|
183
|
+
<!-- /.form-group -->
|
184
|
+
</form>
|
185
|
+
</div>
|
186
|
+
<!-- /.tab-pane -->
|
187
|
+
</div>
|
188
|
+
</aside>
|
189
|
+
|
190
|
+
<div class="control-sidebar-bg"></div>
|
@@ -0,0 +1,264 @@
|
|
1
|
+
<header class="main-header">
|
2
|
+
<!-- Logo -->
|
3
|
+
<a href="##index2.html" class="logo">
|
4
|
+
<!-- mini logo for sidebar mini 50x50 pixels -->
|
5
|
+
<span class="logo-mini"><b>Admin</b></span>
|
6
|
+
<!-- logo for regular state and mobile devices -->
|
7
|
+
<span class="logo-lg"><b>Admin</b>lte</span>
|
8
|
+
</a>
|
9
|
+
<!-- Header Navbar: style can be found in header.less -->
|
10
|
+
<nav class="navbar navbar-static-top">
|
11
|
+
<!-- Sidebar toggle button-->
|
12
|
+
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
|
13
|
+
<span class="sr-only">Toggle navigation</span>
|
14
|
+
</a>
|
15
|
+
|
16
|
+
<div class="navbar-custom-menu">
|
17
|
+
<ul class="nav navbar-nav">
|
18
|
+
<!-- Messages: style can be found in dropdown.less-->
|
19
|
+
<li class="dropdown messages-menu">
|
20
|
+
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
21
|
+
<i class="fa fa-envelope-o"></i>
|
22
|
+
<span class="label label-success">4</span>
|
23
|
+
</a>
|
24
|
+
<ul class="dropdown-menu">
|
25
|
+
<li class="header">You have 4 messages</li>
|
26
|
+
<li>
|
27
|
+
<!-- inner menu: contains the actual data -->
|
28
|
+
<ul class="menu">
|
29
|
+
<li><!-- start message -->
|
30
|
+
<a href="#">
|
31
|
+
<div class="pull-left">
|
32
|
+
<!-- <img src="assets/AdminLTE/user2-160x160.jpg" class="img-circle" alt="User Image"> -->
|
33
|
+
</div>
|
34
|
+
<h4>
|
35
|
+
Support Team
|
36
|
+
<small><i class="fa fa-clock-o"></i> 5 mins</small>
|
37
|
+
</h4>
|
38
|
+
<p>Why not buy a new awesome theme?</p>
|
39
|
+
</a>
|
40
|
+
</li>
|
41
|
+
<!-- end message -->
|
42
|
+
<li>
|
43
|
+
<a href="#">
|
44
|
+
<div class="pull-left">
|
45
|
+
<%%# image_tag("AdminLTE/user3-128x128.jpg", class:"img-circle", alt:"User Image") %>
|
46
|
+
</div>
|
47
|
+
<h4>
|
48
|
+
AdminLTE Design Team
|
49
|
+
<small><i class="fa fa-clock-o"></i> 2 hours</small>
|
50
|
+
</h4>
|
51
|
+
<p>Why not buy a new awesome theme?</p>
|
52
|
+
</a>
|
53
|
+
</li>
|
54
|
+
<li>
|
55
|
+
<a href="#">
|
56
|
+
<div class="pull-left">
|
57
|
+
<%%# image_tag("", class:"img-circle", alt:"User Image") %>
|
58
|
+
</div>
|
59
|
+
<h4>
|
60
|
+
Developers
|
61
|
+
<small><i class="fa fa-clock-o"></i> Today</small>
|
62
|
+
</h4>
|
63
|
+
<p>Why not buy a new awesome theme?</p>
|
64
|
+
</a>
|
65
|
+
</li>
|
66
|
+
<li>
|
67
|
+
<a href="#">
|
68
|
+
<div class="pull-left">
|
69
|
+
<%%# image_tag("AdminLTE/user3-128x128.jpg", class:"img-circle", alt:"User Image") %>
|
70
|
+
</div>
|
71
|
+
<h4>
|
72
|
+
Sales Department
|
73
|
+
<small><i class="fa fa-clock-o"></i> Yesterday</small>
|
74
|
+
</h4>
|
75
|
+
<p>Why not buy a new awesome theme?</p>
|
76
|
+
</a>
|
77
|
+
</li>
|
78
|
+
<li>
|
79
|
+
<a href="#">
|
80
|
+
<div class="pull-left">
|
81
|
+
<%%# image_tag("AdminLTE/user4-128x128.jpg", class:"img-circle", alt:"User Image") %>
|
82
|
+
</div>
|
83
|
+
<h4>
|
84
|
+
Reviewers
|
85
|
+
<small><i class="fa fa-clock-o"></i> 2 days</small>
|
86
|
+
</h4>
|
87
|
+
<p>Why not buy a new awesome theme?</p>
|
88
|
+
</a>
|
89
|
+
</li>
|
90
|
+
</ul>
|
91
|
+
</li>
|
92
|
+
<li class="footer"><a href="#">See All Messages</a></li>
|
93
|
+
</ul>
|
94
|
+
</li>
|
95
|
+
<!-- Notifications: style can be found in dropdown.less -->
|
96
|
+
<li class="dropdown notifications-menu">
|
97
|
+
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
98
|
+
<i class="fa fa-bell-o"></i>
|
99
|
+
<span class="label label-warning">10</span>
|
100
|
+
</a>
|
101
|
+
<ul class="dropdown-menu">
|
102
|
+
<li class="header">You have 10 notifications</li>
|
103
|
+
<li>
|
104
|
+
<!-- inner menu: contains the actual data -->
|
105
|
+
<ul class="menu">
|
106
|
+
<li>
|
107
|
+
<a href="#">
|
108
|
+
<i class="fa fa-users text-aqua"></i> 0 new members joined today
|
109
|
+
</a>
|
110
|
+
</li>
|
111
|
+
<li>
|
112
|
+
<a href="#">
|
113
|
+
<i class="fa fa-warning text-yellow"></i> Very long description here that may not fit into the
|
114
|
+
page and may cause design problems
|
115
|
+
</a>
|
116
|
+
</li>
|
117
|
+
<li>
|
118
|
+
<a href="#">
|
119
|
+
<i class="fa fa-users text-red"></i> 5 new members joined
|
120
|
+
</a>
|
121
|
+
</li>
|
122
|
+
<li>
|
123
|
+
<a href="#">
|
124
|
+
<i class="fa fa-shopping-cart text-green"></i> 25 sales made
|
125
|
+
</a>
|
126
|
+
</li>
|
127
|
+
<li>
|
128
|
+
<a href="#">
|
129
|
+
<i class="fa fa-user text-red"></i> You changed your username
|
130
|
+
</a>
|
131
|
+
</li>
|
132
|
+
</ul>
|
133
|
+
</li>
|
134
|
+
<li class="footer"><a href="#">View all</a></li>
|
135
|
+
</ul>
|
136
|
+
</li>
|
137
|
+
<!-- Tasks: style can be found in dropdown.less -->
|
138
|
+
<li class="dropdown tasks-menu">
|
139
|
+
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
140
|
+
<i class="fa fa-flag-o"></i>
|
141
|
+
<span class="label label-danger">9</span>
|
142
|
+
</a>
|
143
|
+
<ul class="dropdown-menu">
|
144
|
+
<li class="header">You have 0 tasks</li>
|
145
|
+
<li>
|
146
|
+
<!-- inner menu: contains the actual data -->
|
147
|
+
<ul class="menu">
|
148
|
+
<li><!-- Task item -->
|
149
|
+
<a href="#">
|
150
|
+
<h3>
|
151
|
+
Design some buttons
|
152
|
+
<small class="pull-right">20%</small>
|
153
|
+
</h3>
|
154
|
+
<div class="progress xs">
|
155
|
+
<div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar"
|
156
|
+
aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
|
157
|
+
<span class="sr-only">20% Complete</span>
|
158
|
+
</div>
|
159
|
+
</div>
|
160
|
+
</a>
|
161
|
+
</li>
|
162
|
+
<!-- end task item -->
|
163
|
+
<li><!-- Task item -->
|
164
|
+
<a href="#">
|
165
|
+
<h3>
|
166
|
+
Create a nice theme
|
167
|
+
<small class="pull-right">40%</small>
|
168
|
+
</h3>
|
169
|
+
<div class="progress xs">
|
170
|
+
<div class="progress-bar progress-bar-green" style="width: 40%" role="progressbar"
|
171
|
+
aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
|
172
|
+
<span class="sr-only">40% Complete</span>
|
173
|
+
</div>
|
174
|
+
</div>
|
175
|
+
</a>
|
176
|
+
</li>
|
177
|
+
<!-- end task item -->
|
178
|
+
<li><!-- Task item -->
|
179
|
+
<a href="#">
|
180
|
+
<h3>
|
181
|
+
Some task I need to do
|
182
|
+
<small class="pull-right">60%</small>
|
183
|
+
</h3>
|
184
|
+
<div class="progress xs">
|
185
|
+
<div class="progress-bar progress-bar-red" style="width: 60%" role="progressbar"
|
186
|
+
aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
|
187
|
+
<span class="sr-only">60% Complete</span>
|
188
|
+
</div>
|
189
|
+
</div>
|
190
|
+
</a>
|
191
|
+
</li>
|
192
|
+
<!-- end task item -->
|
193
|
+
<li><!-- Task item -->
|
194
|
+
<a href="#">
|
195
|
+
<h3>
|
196
|
+
Make beautiful transitions
|
197
|
+
<small class="pull-right">80%</small>
|
198
|
+
</h3>
|
199
|
+
<div class="progress xs">
|
200
|
+
<div class="progress-bar progress-bar-yellow" style="width: 80%" role="progressbar"
|
201
|
+
aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
|
202
|
+
<span class="sr-only">80% Complete</span>
|
203
|
+
</div>
|
204
|
+
</div>
|
205
|
+
</a>
|
206
|
+
</li>
|
207
|
+
<!-- end task item -->
|
208
|
+
</ul>
|
209
|
+
</li>
|
210
|
+
<li class="footer">
|
211
|
+
<a href="#">View all tasks</a>
|
212
|
+
</li>
|
213
|
+
</ul>
|
214
|
+
</li>
|
215
|
+
<!-- User Account: style can be found in dropdown.less -->
|
216
|
+
<li class="dropdown user user-menu">
|
217
|
+
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
218
|
+
<%%# image_tag("AdminLTE/user2-160x160.jpg", class:"user-image", alt: "User Image") %>
|
219
|
+
<span class="hidden-xs"><%%= "current_user.name" %></span>
|
220
|
+
</a>
|
221
|
+
<ul class="dropdown-menu">
|
222
|
+
<!-- User image -->
|
223
|
+
<li class="user-header">
|
224
|
+
<%%# image_tag("AdminLTE/user2-160x160.jpg", class: "img-circle", alt:"User Image") %>
|
225
|
+
<%%# image_tag "AdminLTE/user1-128x128.jpg", class:"img-circle", alt:"User Image" %>
|
226
|
+
|
227
|
+
<p>
|
228
|
+
<%%= "current_user.name" %>
|
229
|
+
</p>
|
230
|
+
</li>
|
231
|
+
<!-- Menu Body -->
|
232
|
+
<li class="user-body">
|
233
|
+
<div class="row">
|
234
|
+
<div class="col-xs-4 text-center">
|
235
|
+
<a href="#">Followers</a>
|
236
|
+
</div>
|
237
|
+
<div class="col-xs-4 text-center">
|
238
|
+
<a href="#">Sales</a>
|
239
|
+
</div>
|
240
|
+
<div class="col-xs-4 text-center">
|
241
|
+
<a href="#">Friends</a>
|
242
|
+
</div>
|
243
|
+
</div>
|
244
|
+
<!-- /.row -->
|
245
|
+
</li>
|
246
|
+
<!-- Menu Footer-->
|
247
|
+
<li class="user-footer">
|
248
|
+
<div class="pull-left">
|
249
|
+
<a href="#" class="btn btn-default btn-flat">Profile</a>
|
250
|
+
</div>
|
251
|
+
<div class="pull-right">
|
252
|
+
<%%= link_to "Sign Out", "", class:"btn btn-default btn-flat" %>
|
253
|
+
</div>
|
254
|
+
</li>
|
255
|
+
</ul>
|
256
|
+
</li>
|
257
|
+
<!-- Control Sidebar Toggle Button -->
|
258
|
+
<li>
|
259
|
+
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
|
260
|
+
</li>
|
261
|
+
</ul>
|
262
|
+
</div>
|
263
|
+
</nav>
|
264
|
+
</header>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<aside class="main-sidebar">
|
2
|
+
<!-- sidebar: style can be found in sidebar.less -->
|
3
|
+
<section class="sidebar">
|
4
|
+
<!-- Sidebar user panel -->
|
5
|
+
<div class="user-panel">
|
6
|
+
<div class="pull-left image">
|
7
|
+
<%%# image_tag "AdminLTE/user1-128x128.jpg", class:"img-circle", alt:"User Image" %>
|
8
|
+
<img src="assets/AdminLTE/user.png" class="img-circle" alt="User Image">
|
9
|
+
</div>
|
10
|
+
<div class="pull-left info">
|
11
|
+
<p><%%= "current_user.name" %></p>
|
12
|
+
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
<!-- search form -->
|
16
|
+
<form action="#" method="get" class="sidebar-form">
|
17
|
+
<div class="input-group">
|
18
|
+
<input type="text" name="q" class="form-control" placeholder="Search...">
|
19
|
+
<span class="input-group-btn">
|
20
|
+
<button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
|
21
|
+
</button>
|
22
|
+
</span>
|
23
|
+
</div>
|
24
|
+
</form>
|
25
|
+
<!-- /.search form -->
|
26
|
+
<!-- sidebar menu: : style can be found in sidebar.less -->
|
27
|
+
<ul class="sidebar-menu" data-widget="tree">
|
28
|
+
<li class="header">MAIN NAVIGATION</li>
|
29
|
+
|
30
|
+
<li class="<%%= params["controller"] == "pages" and params["action"] == "dashboard" ? "active" : ""%>">
|
31
|
+
<a href="<%%# dashboard_path %>">
|
32
|
+
<i class="fa fa-dashboard"></i>
|
33
|
+
<span> Dashboard </span>
|
34
|
+
</a>
|
35
|
+
</li>
|
36
|
+
</ul>
|
37
|
+
</section>
|
38
|
+
<!-- /.sidebar -->
|
39
|
+
</aside>
|
40
|
+
|
41
|
+
<div class="control-sidebar-bg"></div>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Adminlte Theme</title>
|
5
|
+
<%%= csrf_meta_tags %>
|
6
|
+
|
7
|
+
<%%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
8
|
+
<%%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
|
9
|
+
</head>
|
10
|
+
|
11
|
+
<body class="hold-transition skin-green sidebar-mini">
|
12
|
+
<div class="wrapper">
|
13
|
+
<%%= render 'layouts/header' %>
|
14
|
+
<!-- Left side column. contains the logo and sidebar -->
|
15
|
+
<%%= render 'layouts/sidebar' %>
|
16
|
+
|
17
|
+
<!-- Content Wrapper. Contains page content -->
|
18
|
+
<div class="content-wrapper">
|
19
|
+
<%%= yield %>
|
20
|
+
</div>
|
21
|
+
<!-- /.content-wrapper -->
|
22
|
+
<%%= render 'layouts/footer' %>
|
23
|
+
<%%= render 'layouts/control_sidebar' %>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adminlte_theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joseph Nelson Valeros
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: generator_spec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.9.4
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.9.4
|
55
69
|
description: " Caters the base theme of AdminLTE by Almsaeed Studio. Plugins are not
|
56
70
|
included by default to maximize performance and should be added manually. "
|
57
71
|
email:
|
@@ -62,6 +76,7 @@ extra_rdoc_files: []
|
|
62
76
|
files:
|
63
77
|
- ".gitignore"
|
64
78
|
- ".rspec"
|
79
|
+
- ".ruby-version"
|
65
80
|
- ".travis.yml"
|
66
81
|
- CODE_OF_CONDUCT.md
|
67
82
|
- Gemfile
|
@@ -75,6 +90,12 @@ files:
|
|
75
90
|
- lib/adminlte_theme.rb
|
76
91
|
- lib/adminlte_theme/engine.rb
|
77
92
|
- lib/adminlte_theme/version.rb
|
93
|
+
- lib/generators/adminlte_theme/adminlte_theme_generator.rb
|
94
|
+
- lib/generators/adminlte_theme/templates/layouts/_control_sidebar.html.erb
|
95
|
+
- lib/generators/adminlte_theme/templates/layouts/_footer.html.erb
|
96
|
+
- lib/generators/adminlte_theme/templates/layouts/_header.html.erb
|
97
|
+
- lib/generators/adminlte_theme/templates/layouts/_sidebar.html.erb
|
98
|
+
- lib/generators/adminlte_theme/templates/layouts/adminlte_theme.html.erb
|
78
99
|
- vendor/assets/images/AdminLTE/avatar.png
|
79
100
|
- vendor/assets/images/AdminLTE/avatar04.png
|
80
101
|
- vendor/assets/images/AdminLTE/avatar2.png
|