casein 4.0.0 → 5.0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +246 -0
  3. data/PUBLIC_VERSION.yml +2 -2
  4. data/README.rdoc +73 -49
  5. data/Rakefile +7 -5
  6. data/app/assets/fonts/casein/glyphiconshalflings-regular.eot +0 -0
  7. data/app/assets/fonts/casein/glyphiconshalflings-regular.otf +0 -0
  8. data/app/assets/fonts/casein/glyphiconshalflings-regular.svg +175 -0
  9. data/app/assets/fonts/casein/glyphiconshalflings-regular.ttf +0 -0
  10. data/app/assets/fonts/casein/glyphiconshalflings-regular.woff +0 -0
  11. data/app/assets/images/casein/casein.png +0 -0
  12. data/app/assets/javascripts/casein/bootstrap.js +1966 -0
  13. data/app/assets/javascripts/casein/casein.js +34 -19
  14. data/app/assets/javascripts/casein/html5shiv.js +8 -0
  15. data/app/assets/stylesheets/casein/bootstrap-glyphicons.css.scss +2 -0
  16. data/app/assets/stylesheets/casein/bootstrap.css +4692 -0
  17. data/app/assets/stylesheets/casein/casein-bootstrap-overrides.css.scss +76 -0
  18. data/app/assets/stylesheets/casein/casein.css.scss +258 -3
  19. data/app/assets/stylesheets/casein/login.css.scss +48 -109
  20. data/app/controllers/casein/{user_sessions_controller.rb → admin_user_sessions_controller.rb} +6 -10
  21. data/app/controllers/casein/admin_users_controller.rb +124 -0
  22. data/app/controllers/casein/casein_controller.rb +11 -9
  23. data/app/controllers/casein/password_resets_controller.rb +8 -10
  24. data/app/helpers/casein/casein_helper.rb +94 -31
  25. data/app/mailers/casein/casein_notification.rb +13 -13
  26. data/app/models/casein/{user.rb → admin_user.rb} +2 -2
  27. data/app/models/casein/{user_session.rb → admin_user_session.rb} +1 -1
  28. data/app/views/casein/admin_user_sessions/new.html.erb +56 -0
  29. data/app/views/casein/admin_users/index.html.erb +39 -0
  30. data/app/views/casein/admin_users/new.html.erb +57 -0
  31. data/app/views/casein/admin_users/show.html.erb +104 -0
  32. data/app/views/casein/casein/blank.html.erb +12 -1
  33. data/app/views/casein/casein_notification/generate_new_password.erb +1 -1
  34. data/app/views/casein/casein_notification/new_user_information.erb +1 -1
  35. data/app/views/casein/casein_notification/password_reset_instructions.erb +1 -1
  36. data/app/views/casein/password_resets/edit.html.erb +21 -33
  37. data/app/views/layouts/casein_auth.html.erb +34 -22
  38. data/app/views/layouts/casein_main.html.erb +111 -64
  39. data/config/initializers/will_paginate.rb +40 -0
  40. data/config/routes.rb +2 -2
  41. data/lib/casein.rb +9 -3
  42. data/lib/casein/engine.rb +5 -1
  43. data/lib/generators/casein/install/install_generator.rb +3 -3
  44. data/lib/generators/casein/install/templates/app/helpers/casein/config_helper.rb +10 -11
  45. data/lib/generators/casein/install/templates/app/views/casein/layouts/{_left_navigation.html.erb → _tab_navigation.html.erb} +0 -0
  46. data/lib/generators/casein/install/templates/app/views/casein/layouts/_top_navigation.html.erb +4 -0
  47. data/lib/generators/casein/install/templates/db/migrate/{casein_create_users.rb → casein_create_admin_users.rb} +3 -3
  48. data/lib/generators/casein/scaffold/scaffold_generator.rb +20 -8
  49. data/lib/generators/casein/scaffold/templates/controller.rb +6 -6
  50. data/lib/generators/casein/scaffold/templates/views/_form.html.erb +11 -8
  51. data/lib/generators/casein/scaffold/templates/views/_table.html.erb +12 -10
  52. data/lib/generators/casein/scaffold/templates/views/index.html.erb +7 -3
  53. data/lib/generators/casein/scaffold/templates/views/new.html.erb +3 -3
  54. data/lib/generators/casein/scaffold/templates/views/show.html.erb +5 -5
  55. data/lib/railties/tasks.rake +15 -13
  56. metadata +67 -46
  57. data/MIT-LICENSE +0 -21
  58. data/app/assets/images/casein/header.png +0 -0
  59. data/app/assets/images/casein/icons/add.png +0 -0
  60. data/app/assets/images/casein/icons/delete.png +0 -0
  61. data/app/assets/images/casein/icons/table.png +0 -0
  62. data/app/assets/images/casein/login/alertBg.png +0 -0
  63. data/app/assets/images/casein/login/background.png +0 -0
  64. data/app/assets/images/casein/login/bottom.png +0 -0
  65. data/app/assets/images/casein/login/loginBoxBg.png +0 -0
  66. data/app/assets/images/casein/login/loginBoxBottom.png +0 -0
  67. data/app/assets/images/casein/login/loginBoxTop.png +0 -0
  68. data/app/assets/images/casein/login/loginSubmit.png +0 -0
  69. data/app/assets/images/casein/login/recoverSubmit.png +0 -0
  70. data/app/assets/images/casein/login/top.png +0 -0
  71. data/app/assets/images/casein/nav.png +0 -0
  72. data/app/assets/images/casein/rightNav.png +0 -0
  73. data/app/assets/images/casein/rightNavButton.png +0 -0
  74. data/app/assets/images/casein/visitSiteNav.png +0 -0
  75. data/app/assets/javascripts/casein/login.js +0 -27
  76. data/app/assets/stylesheets/casein/elements.css.scss +0 -307
  77. data/app/assets/stylesheets/casein/screen.css.scss +0 -224
  78. data/app/controllers/casein/users_controller.rb +0 -108
  79. data/app/views/casein/user_sessions/new.html.erb +0 -66
  80. data/app/views/casein/users/index.html.erb +0 -35
  81. data/app/views/casein/users/new.html.erb +0 -46
  82. data/app/views/casein/users/show.html.erb +0 -94
  83. data/lib/generators/casein/install/templates/app/views/casein/layouts/_right_navigation.html.erb +0 -1
@@ -1,27 +0,0 @@
1
- //= require jquery
2
- //= require jquery_ujs
3
-
4
- jQuery(document).ready(function()
5
- {
6
- if(jQuery("#notice"))
7
- {
8
- setTimeout(function()
9
- {
10
- jQuery("#notice").fadeOut(500);
11
- }, 20000);
12
- };
13
- });
14
-
15
- toggleDiv = function(div)
16
- {
17
- switch ($("#"+div).css('display'))
18
- {
19
- case "none":
20
- $("#"+div).fadeIn(300);
21
- break;
22
-
23
- case "block":
24
- $("#"+div).fadeOut(300);
25
- break;
26
- }
27
- }
@@ -1,307 +0,0 @@
1
- /* CASEIN */
2
-
3
- .icon {
4
- height: 16px;
5
- width: 16px;
6
- padding: 0px 9px 0px 9px;
7
- display: block;
8
- float: left;
9
- }
10
-
11
- .iconRow {
12
- height: 16px;
13
- width: 16px;
14
- padding: 0px;
15
- display: block;
16
- float: left;
17
- }
18
-
19
- #content {
20
- position: fixed;
21
- font-size: 12px;
22
- bottom: 0;
23
- left: 0;
24
- right: 318px;
25
- background: #fff;
26
- z-index: 10;
27
- overflow: auto;
28
- }
29
-
30
- #content p {
31
- font-size: 12px;
32
- margin: 1em 0;
33
- }
34
-
35
- #data {
36
- padding: 15px 25px 25px 25px;
37
- }
38
-
39
- #content h1 {
40
- border-bottom: 2px solid #DDDDDD;
41
- color: #111111;
42
- font-size: 1.2em;
43
- font-weight: normal;
44
- margin: 0 0 15px 0;
45
- padding: 0 0 5px 0;
46
- }
47
-
48
- #content h2, #preview h2 {
49
- font-size: 15px;
50
- font-weight: normal;
51
- color: #111;
52
- border-bottom: 2px solid #ddd;
53
- padding: 0 0 5px 0;
54
- margin: 0 0 15px 0;
55
- position: relative;
56
- }
57
-
58
- #content h2 img, #preview h2 img {
59
- position: absolute;
60
- top: 0;
61
- right: 0;
62
- cursor: pointer;
63
- }
64
-
65
- #content .openFolder {
66
- border-bottom: 1px solid #ddd;
67
- background: image-url('folder.png') no-repeat center left;
68
- font-weight: bold;
69
- cursor: pointer;
70
- }
71
-
72
- #content .itemList {
73
- width: 100%;
74
- border-bottom: 3px solid #666;
75
- }
76
-
77
- #content .itemList .center {
78
- text-align: center;
79
- }
80
-
81
- #content .itemList .icon {
82
- width: 16px;
83
- }
84
-
85
- #content .itemList th {
86
- text-align: left;
87
- font-size: 11px;
88
- padding: 7px 8px 6px 8px;
89
- border-bottom: 3px solid #666;
90
- }
91
-
92
- #content .itemList th a {
93
- color: #000;
94
- }
95
-
96
- #content .delete {
97
- width: 16px;
98
- height: 16px;
99
- padding: 0px;
100
- }
101
-
102
- #content .delete a {
103
- float: left;
104
- padding: 0px;
105
- }
106
-
107
- #content .itemList td {
108
- font-size: 11px;
109
- color: #333;
110
- border-bottom: 1px solid #ddd;
111
- }
112
-
113
- #content .itemList td a {
114
- display: block;
115
- padding: 9px 8px 7px 8px;
116
- line-height: 11px;
117
- color: #333;
118
- text-decoration: none;
119
- }
120
-
121
- #content .itemList td div.noLink {
122
- padding: 9px 8px 7px 8px;
123
- }
124
-
125
- #content .itemList tr.hover:hover {
126
- background: #eee;
127
- border-bottom: 1px solid #ccc;
128
- cursor: pointer;
129
- }
130
-
131
- #content .even {
132
- background: #e7edfc;
133
- }
134
-
135
- #content .tfContainer {
136
- width: 45%;
137
- min-height: 60px;
138
- float: left;
139
- padding: 0 5% 12px 0;
140
- }
141
-
142
- #content .tfContainer p {
143
- margin: 0;
144
- }
145
-
146
- #content .tfContainer div {
147
- float: left;
148
- margin: 0 10px 0 0;
149
- }
150
-
151
- #content .tfContainer .caseinDateSelectWrapper div {
152
- float: none;
153
- margin: 0px;
154
- margin-top: 4px;
155
- }
156
-
157
- #content .tfContainerSecond {
158
- padding: 0 0 12px 4%;
159
- }
160
-
161
- #content .tfContainerFullWidth {
162
- width: 100%;
163
- padding-right: 0px;
164
- }
165
-
166
- #content .help {
167
- border-bottom: 5px solid #fce701;
168
- background: #fff9bb;
169
- padding: 12px 20px 8px 20px;
170
- font-size: 12px;
171
- color: #111111;
172
- margin: 0 0 20px 0;
173
- font-style: italic;
174
- }
175
-
176
- #content label {
177
- font-size: 12px;
178
- color: #333;
179
- }
180
-
181
- #content #error {
182
- border-bottom: 5px solid #f48e8e;
183
- background: #f7b7b7;
184
- padding: 12px 20px 8px 20px;
185
- font-size: 12px;
186
- color: #801616;
187
- margin: 0 0 20px 0;
188
- }
189
-
190
- #content #notice {
191
- border-bottom: 5px solid #95ccef;
192
- background: #d9ebf6;
193
- padding: 12px 20px 8px 20px;
194
- font-size: 12px;
195
- color: #245574;
196
- margin: 0 0 20px 0;
197
- }
198
-
199
- #content .tfContainer .caseinTextField {
200
- width: 100%;
201
- font-size: 12px;
202
- padding: 6px 0 5px 0;
203
- margin: 3px 0 0 0;
204
- }
205
-
206
- .formError {
207
- padding: 7px 0 0 0;
208
- color: #801616;
209
- }
210
-
211
- .formError > input, .formError > textarea {
212
- border: 1px solid #801616;
213
- }
214
-
215
- #content .extraOptions {
216
- font-size: 11px;
217
- padding: 10px 0;
218
- cursor: pointer;
219
- width: 100px;
220
- }
221
-
222
- #content .extras {
223
- padding: 15px;
224
- border-top: 2px solid #ddd;
225
- border-bottom: 2px solid #ddd;
226
- margin: 5px 0;
227
- background: #eee;
228
- position: relative;
229
- }
230
-
231
- #content .extras .checkboxOptions {
232
- padding: 20px 0 20px 0;
233
- font-size: 11px;
234
- color: #222;
235
- font-weight: bold;
236
- }
237
-
238
- #content .invalidForm {
239
- color: #993333;
240
- border: 1px solid #ff6666;
241
- }
242
-
243
- #content .tfContainer .caseinSelect {
244
- width: 100%;
245
- margin: 5px 0 0 0;
246
- }
247
-
248
- #content .tfContainer .caseinDateTimeSelect {
249
- width: auto;
250
- margin: 5px 0 0 0;
251
- }
252
-
253
- #content .tfContainer .caseinFileFieldContainer {
254
- width: 350px;
255
- padding: 3px 5px 4px 5px;
256
- margin: 3px 0 0 0;
257
- border: 1px solid #ccc;
258
- }
259
-
260
- #content .caseinTextArea, #content .caseinTextAreaBig {
261
- width: 100%;
262
- height: 120px;
263
- font-family: "Lucida Grande", "Trebuchet MS", Helvetica, Arial, sans-serif;
264
- font-size: 12px;
265
- padding: 6px 0 5px 0;
266
- margin: 3px 0 0 0;
267
- }
268
-
269
- #content .caseinTextAreaBig {
270
- height: 300px;
271
- }
272
-
273
- #content .rcText {
274
- font-size: 11px;
275
- color: #333;
276
- }
277
-
278
- #content .submits {
279
- text-align: right;
280
- font-size: 12px;
281
- padding: 10px 10px;
282
- background-color: #ddd;
283
- }
284
-
285
- #content .cancel, #content a.negative:link, #content a.negative:visited {
286
- color: #ff0000;
287
- }
288
-
289
- #content .cancel:hover, #content a.negative:visited:hover {
290
- color: #990000;
291
- }
292
-
293
- #content .pagination {
294
- text-align: center;
295
- margin: 20px 0px 0px 0px;
296
- font-size: 12px;
297
- padding: 10px 10px;
298
- background-color: #ddd;
299
- }
300
-
301
- #content .pagination a:link, a:visited {
302
- color: #555;
303
- }
304
-
305
- #content .pagination a:hover, a:visited:hover {
306
- color: #000;
307
- }
@@ -1,224 +0,0 @@
1
- /* CASEIN */
2
-
3
- /* GENERAL */
4
-
5
- * {
6
- margin: 0;
7
- padding: 0;
8
- }
9
-
10
- body {
11
- height: 100%;
12
- max-height: 100%;
13
- overflow: hidden;
14
- background: white;
15
- color: black;
16
- font-family: "Lucida Grande", "Trebuchet MS", Helvetica, Arial, sans-serif;
17
- margin: 0;
18
- padding: 0;
19
- }
20
-
21
- img {
22
- border: none;
23
- }
24
-
25
- a {
26
- color: #333333;
27
- text-decoration: underline;
28
- outline: none;
29
- }
30
-
31
- a:hover {
32
- color: #000000;
33
- }
34
-
35
- a:active {
36
- color: #000000;
37
- }
38
-
39
- a:visited {
40
- color: #000000;
41
- }
42
-
43
- .spacer {
44
- width: 100%;
45
- height: 150px;
46
- }
47
-
48
- .clearer {
49
- font-size: 1px;
50
- clear: both;
51
- }
52
-
53
- /* END OF GENERAL */
54
-
55
- /* LOGIN */
56
-
57
- div.loginBox {
58
- width: 300px;
59
- height: auto;
60
- text-align: center;
61
- }
62
-
63
- /* END OF LOGIN */
64
-
65
- /* HEADER */
66
-
67
- #header {
68
- background: #EFEFEF;
69
- height: 96px;
70
- padding: 25px;
71
- position: relative;
72
- background: image-url('casein/header.png') repeat-x top left;
73
- z-index: 900;
74
- }
75
-
76
- #header h1 a img {
77
- border: 0;
78
- }
79
-
80
- #header h1 a {
81
- display: block;
82
- width: 230px;
83
- height: 33px;
84
- text-decoration: none;
85
- }
86
-
87
- #dashboard {
88
- position: absolute;
89
- top: 15px;
90
- right: 25px;
91
- font-size: 11px;
92
- }
93
-
94
- #dashboard ul {
95
- list-style: none;
96
- }
97
-
98
- #dashboard li {
99
- float: left;
100
- border-right: 1px solid #ccc;
101
- padding: 0 10px 0 0;
102
- margin: 0 0 0 10px;
103
- color: #777;
104
- }
105
-
106
- #dashboard li a {
107
- color: #555;
108
- font-weight: bold;
109
- text-decoration: none;
110
- }
111
-
112
- #dashboard li a:hover {
113
- color: #000;
114
- }
115
-
116
- #navigation {
117
- position: absolute;
118
- bottom: 28px;
119
- left: 25px;
120
- font-size: 13px;
121
- font-weight: bold;
122
- }
123
-
124
- #navigation ul {
125
- list-style: none;
126
- }
127
-
128
- #navigation li {
129
- float: left;
130
- margin: 0 2px 0 0;
131
- }
132
-
133
- #navigation li a {
134
- color: #fff;
135
- padding: 11px 12px 9px 12px;
136
- background: image-url('casein/nav.png') repeat-x bottom left;
137
- text-decoration: none;
138
- }
139
-
140
- #navigation li a:hover {
141
- padding: 11px 12px 9px 12px;
142
- background: image-url('casein/nav.png') repeat-x top left;
143
- color: #000;
144
- }
145
-
146
- #navigation .active a {
147
- background: image-url('casein/nav.png') repeat-x top left;
148
- color: #000;
149
- }
150
-
151
- #altNavigation {
152
- position: absolute;
153
- bottom: 19px;
154
- right: 25px;
155
- font-size: 13px;
156
- font-weight: bold;
157
- }
158
-
159
- #altNavigation ul {
160
- list-style: none;
161
- }
162
-
163
- #altNavigation li {
164
- float: left;
165
- margin: 0 2px 0 0;
166
- }
167
-
168
- #altNavigation li a {
169
- color: #fff;
170
- display: block;
171
- padding: 12px 12px 10px 12px;
172
- background: image-url('casein/visitSiteNav.png') repeat-x top left;
173
- text-decoration: none;
174
- }
175
-
176
- #altNavigation li a:hover {
177
- background: image-url('casein/visitSiteNav.png') repeat-x bottom left;
178
- color: #000;
179
- }
180
-
181
- /* END OF HEADER */
182
-
183
- /* RIGHT BAR */
184
-
185
- #rightBar {
186
- position: absolute;
187
- right: 0;
188
- top: 0;
189
- width: 312px;
190
- padding: 0 0 0 6px;
191
- height: 100%;
192
- background: image-url('casein/rightNav.png') repeat-y top left;
193
- z-index: 10;
194
- }
195
-
196
- #rightBar ul {
197
- list-style: none;
198
- }
199
-
200
- #rightBar li {
201
- font-size: 12px;
202
- margin: 0 0 12px 0;
203
- }
204
-
205
- #rightBar li a {
206
- display: block;
207
- width: 288px;
208
- background: image-url('casein/rightNavButton.png') no-repeat top left;
209
- padding: 11px 0 11px 0;
210
- color: #555;
211
- text-decoration: none;
212
- }
213
-
214
- #rightBar li a:hover {
215
- background: image-url('casein/rightNavButton.png') no-repeat bottom left;
216
- color: #000;
217
- }
218
-
219
- #rightBar .active a {
220
- background: image-url('casein/rightNavButton.png') no-repeat bottom left;
221
- color: #000;
222
- }
223
-
224
- /* END OF RIGHT BAR */