the_role 1.5.1 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Bye_bye_CanCan_I_got_the_Role.png +0 -0
- data/README.md +82 -92
- data/app/assets/javascripts/admin_the_role.js +3 -0
- data/app/assets/javascripts/bootstrap-dropdown.js +100 -0
- data/app/assets/stylesheets/admin_the_role.css +7 -0
- data/app/assets/stylesheets/alerts.less +58 -0
- data/app/assets/stylesheets/button-groups.less +191 -0
- data/app/assets/stylesheets/buttons.less +191 -0
- data/app/assets/stylesheets/custom.scss +3 -0
- data/app/assets/stylesheets/dropdowns.less +143 -0
- data/app/assets/stylesheets/forms.less +583 -0
- data/app/assets/stylesheets/grid.less +5 -0
- data/app/assets/stylesheets/headers.scss +15 -0
- data/app/assets/stylesheets/layouts.less +17 -0
- data/app/assets/stylesheets/mix.scss +41 -0
- data/app/assets/stylesheets/mixins.less +646 -0
- data/app/assets/stylesheets/reset.css +117 -0
- data/app/assets/stylesheets/role_set.less +136 -0
- data/app/assets/stylesheets/scaffolding.less +29 -0
- data/app/assets/stylesheets/variables.less +206 -0
- data/app/assets/stylesheets/wells.less +27 -0
- data/app/controllers/admin/role_sections_controller.rb +40 -17
- data/app/controllers/admin/roles_controller.rb +8 -6
- data/app/views/admin/roles/_role.html.haml +53 -0
- data/app/views/admin/roles/_sidebar.html.haml +8 -0
- data/app/views/admin/roles/edit.html.haml +2 -42
- data/app/views/admin/roles/index.haml +2 -15
- data/app/views/admin/roles/new.html.haml +5 -4
- data/app/views/layouts/the_role.html.haml +24 -0
- data/config/routes.rb +5 -1
- data/lib/the_role/engine.rb +2 -2
- data/lib/the_role/hash.rb +50 -14
- data/lib/the_role/modules/base.rb +4 -4
- data/lib/the_role/modules/controller_requires.rb +4 -15
- data/lib/the_role/modules/role_model.rb +14 -13
- data/lib/the_role/param_helper.rb +15 -0
- data/lib/the_role/version.rb +1 -1
- data/lib/the_role.rb +13 -11
- data/pic.png +0 -0
- data/the_role.gemspec +5 -2
- metadata +58 -16
- data/app/assets/stylesheets/the_role/form.css +0 -57
- data/app/assets/stylesheets/the_role/headers.css.scss +0 -15
- data/app/assets/stylesheets/the_role/style.css.scss +0 -75
- data/lib/the_role/modules/param_helper.rb +0 -7
@@ -1,75 +0,0 @@
|
|
1
|
-
.the_role{
|
2
|
-
ul.index{
|
3
|
-
position: relative;
|
4
|
-
li{
|
5
|
-
position: relative;
|
6
|
-
p{
|
7
|
-
border-bottom: 1px solid Lavender;
|
8
|
-
font-size: 16px;
|
9
|
-
margin-bottom: 10px;
|
10
|
-
padding: 5px;
|
11
|
-
&:hover{ background: #EEE; }
|
12
|
-
a.delete{
|
13
|
-
position: absolute;
|
14
|
-
bottom: 5px; right: 0;
|
15
|
-
color: IndianRed;
|
16
|
-
}
|
17
|
-
}
|
18
|
-
}
|
19
|
-
}//ul.index
|
20
|
-
|
21
|
-
h4{
|
22
|
-
position: relative;
|
23
|
-
padding: 5px;
|
24
|
-
background: LightBlue;
|
25
|
-
.controls{
|
26
|
-
a{
|
27
|
-
color: blue;
|
28
|
-
}
|
29
|
-
}
|
30
|
-
}
|
31
|
-
|
32
|
-
.controls{
|
33
|
-
position:absolute;
|
34
|
-
right:10px;
|
35
|
-
top:10%;
|
36
|
-
zoom:1;
|
37
|
-
padding-bottom:6px;
|
38
|
-
}
|
39
|
-
.controls a{
|
40
|
-
margin:0 10px;
|
41
|
-
font-size:10pt;
|
42
|
-
color:#CCC;
|
43
|
-
border:1px solid transparent;
|
44
|
-
padding:3px;
|
45
|
-
text-decoration:none;
|
46
|
-
}
|
47
|
-
.controls a:hover{
|
48
|
-
color:#999;
|
49
|
-
border:1px solid #999;
|
50
|
-
}
|
51
|
-
ul.rights{
|
52
|
-
margin:0 0 20px;
|
53
|
-
}
|
54
|
-
ul.rights li{
|
55
|
-
margin:0 0 5px 20px;
|
56
|
-
position:relative;
|
57
|
-
zoom:1;
|
58
|
-
border-bottom:1px solid #EEE;
|
59
|
-
padding: 5px 0;
|
60
|
-
font-size:9pt;
|
61
|
-
}
|
62
|
-
ul.rights li .controls{
|
63
|
-
top:10%;
|
64
|
-
right:5px;
|
65
|
-
padding:5px;
|
66
|
-
}
|
67
|
-
form.new_action{
|
68
|
-
padding:15px;
|
69
|
-
background:#EEE;
|
70
|
-
margin:0 0 50px 0;
|
71
|
-
}
|
72
|
-
form{
|
73
|
-
margin:0 0 50px 0;
|
74
|
-
}
|
75
|
-
}
|