active_admin_sidebar 0.0.5 → 0.1.0.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7a9a14fd688c2f6801e090b27f3972e0473cfce
4
- data.tar.gz: 6136f94f5c8d6863022a4eab4682768cd11868dd
3
+ metadata.gz: 3a6a9b7883e57fdfe206dd14d589c62627fb37f3
4
+ data.tar.gz: 4a784a0a157c28b9adfd4f8cf862f18f0636d6ff
5
5
  SHA512:
6
- metadata.gz: 8a7b086fd47abbebc78a0abd67b03aada8f7d87e6a93da12742b79cbb157048d145c2869dead17b3e6f1ae4735ecb34f35dcdc9f4320dab156af4bab42e3ffff
7
- data.tar.gz: 0efa2f2df6f4c0a9e38a07dc3bee4aaeb0b3e32268bc7a60ac96b53195f99dfd328110a89c6adffa6efb591958b47cc55af658383eb24a05b82af38c85e53031
6
+ metadata.gz: dc0e020b2c1fdae7bb518c69f011bab4ec9cb7ae1015ea9b45ceadee5a92f6c25a773437025dc850078d02c0e1f67203e658d58be42f0ebf2a672f42b80b5e1a
7
+ data.tar.gz: 1be69d09beb162d0b402a88c8bd082f5339662846a2df9e24fad46b0180399a87632e8b9e8ded9dd7549aafa54226130901b383a4d3b4337b19d284839581039
data/README.rdoc CHANGED
@@ -1,12 +1,12 @@
1
1
  active_admin_sidebar
2
2
  ====================
3
3
 
4
- easy change sidebar position with activeadmin (tested with active_admin-0.5.0)
4
+ easy change sidebar position with activeadmin (tested with activeadmin ~> 1.0.0.pre)
5
5
 
6
6
 
7
7
  Add including of css file
8
8
 
9
- @import "active_admin_sidebar/index";
9
+ @import "active_admin_sidebar";
10
10
 
11
11
  to the app/assets/stylesheets/active_admin.css.scss
12
12
 
@@ -15,7 +15,7 @@ Changing sidebar position dynamically with before_filter
15
15
 
16
16
  # app/admin/posts.rb
17
17
  ActiveAdmin.register Post do
18
- before_filter :left_sidebar!, :only=>[:show]
18
+ before_filter :left_sidebar!, only: [:show]
19
19
  end
20
20
 
21
21
  # app/admin/comments.rb
@@ -34,7 +34,7 @@ Moving sidebar to the left within all resource (config/initializers/active_admin
34
34
  # Active Admin resources from here.
35
35
  #
36
36
  config.before_filter do
37
- left_sidebar! if respond_to?(:left_sidebar!)
37
+ left_sidebar!
38
38
  end
39
39
 
40
40
  Disabling using sidebar layout on dashboards (if you setup sidebar position with initializer)
@@ -0,0 +1,44 @@
1
+ body.active_admin #active_admin_content.left_sidebar {
2
+ #sidebar{
3
+ margin-left:0;
4
+ }
5
+
6
+ .paginated_collection_contents{
7
+ clear: none;
8
+ float: left;
9
+ width: 100%;
10
+ }
11
+
12
+ .blank_slate_container{
13
+ clear:none;
14
+ }
15
+
16
+ .columns {
17
+ clear: none;
18
+ }
19
+
20
+ #main_content_wrapper{
21
+ float:inherit;
22
+ width:auto;
23
+ margin-left: 298px;
24
+ #main_content{
25
+ margin:0;
26
+ float: inherit;
27
+ .tabs .comments {
28
+ .active_admin_comment {
29
+ clear: none;
30
+ }
31
+ }
32
+ }
33
+
34
+ }
35
+
36
+
37
+
38
+
39
+ .table_tools:after {
40
+ clear: none;
41
+ padding-bottom: 16px;
42
+ }
43
+ }
44
+
@@ -0,0 +1,44 @@
1
+ body.active_admin #active_admin_content.left_sidebar {
2
+ #sidebar{
3
+ margin-left:0;
4
+ }
5
+
6
+ .paginated_collection_contents{
7
+ clear: none;
8
+ float: left;
9
+ width: 100%;
10
+ }
11
+
12
+ .blank_slate_container{
13
+ clear:none;
14
+ }
15
+
16
+ .columns {
17
+ clear: none;
18
+ }
19
+
20
+ #main_content_wrapper{
21
+ float:inherit;
22
+ width:auto;
23
+ margin-left: 298px;
24
+ #main_content{
25
+ margin:0;
26
+ float: inherit;
27
+ .tabs .comments {
28
+ .active_admin_comment {
29
+ clear: none;
30
+ }
31
+ }
32
+ }
33
+
34
+ }
35
+
36
+
37
+
38
+
39
+ .table_tools:after {
40
+ clear: none;
41
+ padding-bottom: 16px;
42
+ }
43
+ }
44
+
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminSidebar
2
- VERSION = "0.0.5"
2
+ VERSION = "0.1.0.pre"
3
3
  end
@@ -4,12 +4,14 @@ require 'active_admin_sidebar/activeadmin_views_pages_base'
4
4
  require 'active_admin_sidebar/positions'
5
5
 
6
6
  module ActiveAdminSidebar
7
+ module Rails
7
8
  class Engine < Rails::Engine
8
9
  config.after_initialize do
9
10
  ActiveAdmin::BaseController.send :include, ActiveAdminSidebar::Positions
10
11
  end
11
12
  end
12
13
  end
14
+ end
13
15
 
14
16
 
15
17
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_admin_sidebar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.1.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor
@@ -36,7 +36,8 @@ files:
36
36
  - README.rdoc
37
37
  - Rakefile
38
38
  - active_admin_sidebar.gemspec
39
- - app/assets/stylesheets/active_admin_sidebar/index.css
39
+ - app/assets/stylesheets/active_admin_sidebar.css.scss
40
+ - app/assets/stylesheets/active_admin_sidebar/index.css.scss
40
41
  - lib/active_admin_sidebar.rb
41
42
  - lib/active_admin_sidebar/activeadmin_views_pages_base.rb
42
43
  - lib/active_admin_sidebar/positions.rb
@@ -55,9 +56,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
55
56
  version: '0'
56
57
  required_rubygems_version: !ruby/object:Gem::Requirement
57
58
  requirements:
58
- - - ">="
59
+ - - ">"
59
60
  - !ruby/object:Gem::Version
60
- version: '0'
61
+ version: 1.3.1
61
62
  requirements: []
62
63
  rubyforge_project:
63
64
  rubygems_version: 2.2.2
@@ -1,29 +0,0 @@
1
- body.active_admin #active_admin_content.left_sidebar #sidebar{
2
- margin-left:0;
3
- }
4
-
5
- body.active_admin #active_admin_content.left_sidebar .paginated_collection_contents{
6
- clear: none;
7
- float: left;
8
- width: 100%;
9
- }
10
-
11
- body.active_admin #active_admin_content.left_sidebar .blank_slate_container{
12
- clear:none;
13
- }
14
-
15
- body.active_admin #active_admin_content.left_sidebar #main_content_wrapper{
16
- float:inherit;
17
- width:auto;
18
- margin-left: 298px;
19
- }
20
-
21
- body.active_admin #active_admin_content.left_sidebar #main_content_wrapper #main_content{
22
- margin:0;
23
- float: inherit;
24
- .tabs .comments {
25
- .active_admin_comment {
26
- clear: none;
27
- }
28
- }
29
- }