active_admin_sidebar 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Igor Fedoronchuk
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc CHANGED
@@ -8,17 +8,17 @@ easy change sidebar position with activeadmin
8
8
 
9
9
  # app/admin/posts.rb
10
10
  ActiveAdmin.register Post do
11
- before_filter :sidebar_left!
11
+ before_filter :left_sidebar!, :only=>[:show]
12
12
  end
13
13
 
14
14
  # app/admin/comments.rb
15
15
  ActiveAdmin.register Comment do
16
- before_filter :sidebar_right!
16
+ before_filter :right_sidebar!
17
17
  end
18
18
 
19
19
 
20
20
 
21
- 2) move sidebar to left within all resource
21
+ 2) move sidebar to left within all resource (config/initializers/active_admin.rb)
22
22
 
23
23
 
24
24
  # == Controller Filters
@@ -26,5 +26,13 @@ easy change sidebar position with activeadmin
26
26
  # You can add before, after and around filters to all of your
27
27
  # Active Admin resources from here.
28
28
  #
29
- config.before_filter :sidebar_left!
29
+ config.before_filter :left_sidebar!
30
+
31
+
32
+
33
+ Add including of css file
34
+
35
+ @import "active_admin_sidebar";
36
+
37
+ to the app/assets/stylesheets/active_admin.css.scss
30
38
 
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = ActiveAdminSidebar::VERSION
8
8
  s.authors = ["Igor"]
9
9
  s.email = ["fedoronchuk@gmail.com"]
10
- s.homepage = ""
10
+ s.homepage = "https://github.com/Fivell/active_admin_sidebar"
11
11
  s.summary = %q{active_admin_sidebar gem}
12
12
  s.description = %q{extension for activeadmin gem to manage sidebar}
13
13
 
@@ -1,15 +1,23 @@
1
1
  body.active_admin #active_admin_content.left_sidebar #sidebar{
2
- float: left;
3
- margin-left: 0;
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
+ }
4
10
 
11
+ body.active_admin #active_admin_content.left_sidebar .blank_slate_container{
12
+ clear:none;
5
13
  }
14
+
15
+
16
+
6
17
  body.active_admin #active_admin_content.left_sidebar #main_content_wrapper{
7
- float:left;
8
- width:70%;
9
- margin-right:0;
10
- margin-left:5px;
11
- margin-left:5px;
12
- float:left;
18
+ float:inherit;
19
+ width:auto;
20
+ margin-left: 298px;
13
21
  }
14
22
 
15
23
  body.active_admin #active_admin_content.left_sidebar #main_content_wrapper #main_content{
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminSidebar
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-05 00:00:00.000000000 Z
12
+ date: 2012-11-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activeadmin
16
- requirement: &70222216838700 !ruby/object:Gem::Requirement
16
+ requirement: &70168257822220 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70222216838700
24
+ version_requirements: *70168257822220
25
25
  description: extension for activeadmin gem to manage sidebar
26
26
  email:
27
27
  - fedoronchuk@gmail.com
@@ -30,6 +30,7 @@ extensions: []
30
30
  extra_rdoc_files: []
31
31
  files:
32
32
  - Gemfile
33
+ - LICENSE
33
34
  - README.rdoc
34
35
  - Rakefile
35
36
  - active_admin_sidebar.gemspec
@@ -38,7 +39,7 @@ files:
38
39
  - lib/active_admin_sidebar/activeadmin_views_pages_base.rb
39
40
  - lib/active_admin_sidebar/positions.rb
40
41
  - lib/active_admin_sidebar/version.rb
41
- homepage: ''
42
+ homepage: https://github.com/Fivell/active_admin_sidebar
42
43
  licenses: []
43
44
  post_install_message:
44
45
  rdoc_options: []