active_admin_sidebar 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e7a9a14fd688c2f6801e090b27f3972e0473cfce
4
+ data.tar.gz: 6136f94f5c8d6863022a4eab4682768cd11868dd
5
+ SHA512:
6
+ metadata.gz: 8a7b086fd47abbebc78a0abd67b03aada8f7d87e6a93da12742b79cbb157048d145c2869dead17b3e6f1ae4735ecb34f35dcdc9f4320dab156af4bab42e3ffff
7
+ data.tar.gz: 0efa2f2df6f4c0a9e38a07dc3bee4aaeb0b3e32268bc7a60ac96b53195f99dfd328110a89c6adffa6efb591958b47cc55af658383eb24a05b82af38c85e53031
data/README.rdoc CHANGED
@@ -1,10 +1,17 @@
1
- active_admin_sidebar
1
+ active_admin_sidebar
2
2
  ====================
3
3
 
4
- easy change sidebar position with activeadmin
4
+ easy change sidebar position with activeadmin (tested with active_admin-0.5.0)
5
5
 
6
6
 
7
- to change sidebar position dynamically with before_filter
7
+ Add including of css file
8
+
9
+ @import "active_admin_sidebar/index";
10
+
11
+ to the app/assets/stylesheets/active_admin.css.scss
12
+
13
+
14
+ Changing sidebar position dynamically with before_filter
8
15
 
9
16
  # app/admin/posts.rb
10
17
  ActiveAdmin.register Post do
@@ -18,7 +25,7 @@ to change sidebar position dynamically with before_filter
18
25
 
19
26
 
20
27
 
21
- to move sidebar to left within all resource (config/initializers/active_admin.rb)
28
+ Moving sidebar to the left within all resource (config/initializers/active_admin.rb)
22
29
 
23
30
 
24
31
  # == Controller Filters
@@ -26,25 +33,18 @@ to move sidebar to left within all resource (config/initializers/active_admin.r
26
33
  # You can add before, after and around filters to all of your
27
34
  # Active Admin resources from here.
28
35
  #
29
- config.before_filter :left_sidebar!
36
+ config.before_filter do
37
+ left_sidebar! if respond_to?(:left_sidebar!)
38
+ end
30
39
 
31
- to disable using sidebar layout on dashboards (if you setup sidebar position with initializer)
40
+ Disabling using sidebar layout on dashboards (if you setup sidebar position with initializer)
32
41
 
33
42
  ActiveAdmin.register_page "Dashboard" do
34
43
  controller {skip_before_filter :left_sidebar!}
35
44
  #.....
36
45
  end
37
46
 
38
- Add including of css file
39
-
40
- @import "active_admin_sidebar";
41
-
42
- to the app/assets/stylesheets/active_admin.css.scss
43
-
44
-
45
-
46
-
47
-
47
+ Example
48
48
 
49
49
  http://oi45.tinypic.com/1zx1a3r.png
50
50
 
@@ -12,8 +12,6 @@ body.active_admin #active_admin_content.left_sidebar .blank_slate_container{
12
12
  clear:none;
13
13
  }
14
14
 
15
-
16
-
17
15
  body.active_admin #active_admin_content.left_sidebar #main_content_wrapper{
18
16
  float:inherit;
19
17
  width:auto;
@@ -21,5 +19,11 @@ body.active_admin #active_admin_content.left_sidebar #main_content_wrapper{
21
19
  }
22
20
 
23
21
  body.active_admin #active_admin_content.left_sidebar #main_content_wrapper #main_content{
24
- margin:0;
25
- }
22
+ margin:0;
23
+ float: inherit;
24
+ .tabs .comments {
25
+ .active_admin_comment {
26
+ clear: none;
27
+ }
28
+ }
29
+ }
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminSidebar
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,27 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_admin_sidebar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
5
- prerelease:
4
+ version: 0.0.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Igor
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-18 00:00:00.000000000 Z
11
+ date: 2014-12-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activeadmin
16
- requirement: &70364282264380 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70364282264380
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  description: extension for activeadmin gem to manage sidebar
26
28
  email:
27
29
  - fedoronchuk@gmail.com
@@ -41,27 +43,25 @@ files:
41
43
  - lib/active_admin_sidebar/version.rb
42
44
  homepage: https://github.com/Fivell/active_admin_sidebar
43
45
  licenses: []
46
+ metadata: {}
44
47
  post_install_message:
45
48
  rdoc_options: []
46
49
  require_paths:
47
50
  - lib
48
51
  required_ruby_version: !ruby/object:Gem::Requirement
49
- none: false
50
52
  requirements:
51
- - - ! '>='
53
+ - - ">="
52
54
  - !ruby/object:Gem::Version
53
55
  version: '0'
54
56
  required_rubygems_version: !ruby/object:Gem::Requirement
55
- none: false
56
57
  requirements:
57
- - - ! '>='
58
+ - - ">="
58
59
  - !ruby/object:Gem::Version
59
60
  version: '0'
60
61
  requirements: []
61
62
  rubyforge_project:
62
- rubygems_version: 1.8.17
63
+ rubygems_version: 2.2.2
63
64
  signing_key:
64
- specification_version: 3
65
+ specification_version: 4
65
66
  summary: active_admin_sidebar gem
66
67
  test_files: []
67
- has_rdoc: