Skip to content

Commit ea79017

Browse files
committed
Merge branch '0.1.0'
Conflicts: lib/active_admin_sidebar/version.rb
2 parents eff8608 + ae6b7a0 commit ea79017

File tree

6 files changed

+95
-34
lines changed

6 files changed

+95
-34
lines changed

README.rdoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
active_admin_sidebar
22
====================
33

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)
55

66

77
Add including of css file
88

9-
@import "active_admin_sidebar/index";
9+
@import "active_admin_sidebar";
1010

1111
to the app/assets/stylesheets/active_admin.css.scss
1212

@@ -15,7 +15,7 @@ Changing sidebar position dynamically with before_filter
1515

1616
# app/admin/posts.rb
1717
ActiveAdmin.register Post do
18-
before_filter :left_sidebar!, :only=>[:show]
18+
before_filter :left_sidebar!, only: [:show]
1919
end
2020

2121
# app/admin/comments.rb
@@ -34,7 +34,7 @@ Moving sidebar to the left within all resource (config/initializers/active_admin
3434
# Active Admin resources from here.
3535
#
3636
config.before_filter do
37-
left_sidebar! if respond_to?(:left_sidebar!)
37+
left_sidebar!
3838
end
3939

4040
Disabling using sidebar layout on dashboards (if you setup sidebar position with initializer)
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+

app/assets/stylesheets/active_admin_sidebar/index.css

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+

lib/active_admin_sidebar.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
require 'active_admin_sidebar/positions'
55

66
module ActiveAdminSidebar
7+
module Rails
78
class Engine < Rails::Engine
89
config.after_initialize do
910
ActiveAdmin::BaseController.send :include, ActiveAdminSidebar::Positions
1011
end
1112
end
1213
end
14+
end
1315

1416

1517

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module ActiveAdminSidebar
2-
VERSION = "0.0.5"
2+
VERSION = "0.1.0.pre"
33
end

0 commit comments

Comments
 (0)