caseadilla 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -0
  3. data/Gemfile +0 -0
  4. data/LICENSE.txt +0 -0
  5. data/README.md +0 -0
  6. data/Rakefile +0 -0
  7. data/app/assets/fonts/caseadilla/glyphicons-halflings-regular.eot +0 -0
  8. data/app/assets/fonts/caseadilla/glyphicons-halflings-regular.svg +228 -228
  9. data/app/assets/fonts/caseadilla/glyphicons-halflings-regular.ttf +0 -0
  10. data/app/assets/fonts/caseadilla/glyphicons-halflings-regular.woff +0 -0
  11. data/app/assets/images/caseadilla/caseadilla.png +0 -0
  12. data/app/assets/javascripts/caseadilla/bootstrap.js +2114 -2114
  13. data/app/assets/javascripts/caseadilla/bootstrap3-wysihtml5.js +520 -520
  14. data/app/assets/javascripts/caseadilla/caseadilla.js +50 -50
  15. data/app/assets/javascripts/caseadilla/html5shiv.js +8 -8
  16. data/app/assets/javascripts/caseadilla/wysihtml5-0.3.0.min.js +260 -260
  17. data/app/assets/stylesheets/caseadilla/bootstrap-glyphicons.css.scss +2 -2
  18. data/app/assets/stylesheets/caseadilla/bootstrap-theme.css +442 -442
  19. data/app/assets/stylesheets/caseadilla/bootstrap-wysihtml5.css +101 -101
  20. data/app/assets/stylesheets/caseadilla/bootstrap.css +6203 -6203
  21. data/app/assets/stylesheets/caseadilla/caseadilla-bootstrap-overrides.css.scss +79 -79
  22. data/app/assets/stylesheets/caseadilla/caseadilla.scss +269 -269
  23. data/app/assets/stylesheets/caseadilla/login.css.scss +80 -80
  24. data/app/controllers/caseadilla/caseadilla_controller.rb +56 -56
  25. data/app/controllers/caseadilla/caseadilla_user_sessions_controller.rb +35 -35
  26. data/app/controllers/caseadilla/password_resets_controller.rb +63 -63
  27. data/app/controllers/caseadilla/roles_controller.rb +64 -64
  28. data/app/controllers/caseadilla/users_controller.rb +117 -117
  29. data/app/helpers/caseadilla/caseadilla_helper.rb +261 -261
  30. data/app/mailers/caseadilla/caseadilla_notification.rb +38 -38
  31. data/app/views/caseadilla/caseadilla/blank.html.erb +11 -11
  32. data/app/views/caseadilla/caseadilla_notification/generate_new_password.erb +11 -11
  33. data/app/views/caseadilla/caseadilla_notification/new_user_information.erb +11 -11
  34. data/app/views/caseadilla/caseadilla_notification/password_reset_instructions.erb +10 -10
  35. data/app/views/caseadilla/caseadilla_user_sessions/new.html.erb +38 -38
  36. data/app/views/caseadilla/roles/_form.html.erb +11 -11
  37. data/app/views/caseadilla/roles/_table.html.erb +27 -27
  38. data/app/views/caseadilla/roles/index.html.erb +14 -14
  39. data/app/views/caseadilla/roles/new.html.erb +17 -17
  40. data/app/views/caseadilla/roles/show.html.erb +17 -17
  41. data/app/views/caseadilla/users/index.html.erb +36 -36
  42. data/app/views/caseadilla/users/new.html.erb +49 -49
  43. data/app/views/caseadilla/users/show.html.erb +38 -38
  44. data/app/views/layouts/caseadilla_auth.html.erb +36 -36
  45. data/app/views/layouts/caseadilla_main.html.erb +110 -118
  46. data/caseadilla.gemspec +48 -48
  47. data/config/initializers/will_paginate.rb +39 -39
  48. data/config/routes.rb +22 -22
  49. data/lib/caseadilla.rb +13 -13
  50. data/lib/caseadilla/engine.rb +34 -34
  51. data/lib/caseadilla/version.rb +1 -1
  52. data/lib/generators/caseadilla/install/install_generator.rb +153 -153
  53. data/lib/generators/caseadilla/install/templates/app/assets/javascripts/caseadilla/custom.js +1 -1
  54. data/lib/generators/caseadilla/install/templates/app/assets/stylesheets/caseadilla/custom.css.scss +2 -2
  55. data/lib/generators/caseadilla/install/templates/app/helpers/caseadilla/config_helper.rb +44 -44
  56. data/lib/generators/caseadilla/install/templates/app/models/user.rb +23 -23
  57. data/lib/generators/caseadilla/install/templates/app/views/caseadilla/layouts/_tab_navigation.html.erb +1 -1
  58. data/lib/generators/caseadilla/install/templates/app/views/caseadilla/layouts/_top_navigation.html.erb +3 -3
  59. data/lib/generators/caseadilla/install/templates/public/robots.txt +4 -4
  60. data/lib/generators/caseadilla/install/templates/steak/config/initializers/caseadilla.rb +7 -7
  61. data/lib/generators/caseadilla/install/templates/steak/db/migrate/add_name_to_users.rb +8 -8
  62. data/lib/generators/caseadilla/install/templates/veggie/config/initializers/caseadilla.rb +7 -7
  63. data/lib/generators/caseadilla/scaffold/scaffold_generator.rb +110 -110
  64. data/lib/generators/caseadilla/scaffold/templates/controller.rb +71 -71
  65. data/lib/generators/caseadilla/scaffold/templates/migration.rb +12 -12
  66. data/lib/generators/caseadilla/scaffold/templates/model.rb +2 -2
  67. data/lib/generators/caseadilla/scaffold/templates/views/_form.html.erb +11 -11
  68. data/lib/generators/caseadilla/scaffold/templates/views/_table.html.erb +18 -18
  69. data/lib/generators/caseadilla/scaffold/templates/views/index.html.erb +14 -14
  70. data/lib/generators/caseadilla/scaffold/templates/views/new.html.erb +17 -17
  71. data/lib/generators/caseadilla/scaffold/templates/views/show.html.erb +17 -17
  72. data/lib/railties/tasks.rake +31 -31
  73. metadata +2 -2
@@ -1,80 +1,80 @@
1
- /* BOOTSTRAP OVERRIDES */
2
-
3
- .alert {
4
- line-height: 22px;
5
- padding: 10px 15px 10px 15px;
6
- }
7
-
8
- .alert-dismissible {
9
- padding-right: 35px;
10
- }
11
-
12
- .navbar-toggle {
13
- top: 54px;
14
- left: 15px;
15
- }
16
-
17
- .navbar-brand {
18
- padding-top: 10px;
19
- padding-bottom: 25px;
20
- }
21
-
22
- .navbar-nav > li > a:hover,
23
- .navbar-nav > li > a:focus {
24
- color: #000000;
25
- border: 1px solid #cdcdcd;
26
- padding: 14px 9px 14px 9px;
27
- }
28
-
29
- .navbar-nav > .active > a,
30
- .navbar-nav > .active > a:hover,
31
- .navbar-nav > .active > a:focus {
32
- color: #000000;
33
- border: 0px;
34
- padding: 15px 10px 15px 10px;
35
- }
36
-
37
- .navbar-nav > li > a {
38
- color: #555555;
39
- padding: 15px 10px 15px 10px;
40
- margin: 3px 0px 3px 0px;
41
- border-radius: 6px;
42
- }
43
-
44
- .pagination {
45
- margin: 10px 0px 0px 0px;
46
- }
47
-
48
- @media screen and (min-width: 768px) {
49
-
50
- .navbar-brand {
51
- padding-top: 5px;
52
- padding-bottom: 5px;
53
- margin-left: 1px;
54
- }
55
-
56
- .navbar-nav {
57
- margin-top: 15px;
58
- margin-bottom: 15px;
59
- }
60
-
61
- .navbar-nav > li > a:hover,
62
- .navbar-nav > li > a:focus {
63
- border: 1px solid #cdcdcd;
64
- padding: 4px 9px 4px 9px;
65
- }
66
-
67
- .navbar-nav > .active > a,
68
- .navbar-nav > .active > a:hover,
69
- .navbar-nav > .active > a:focus {
70
- border: 0px;
71
- padding: 5px 10px 5px 10px;
72
- }
73
-
74
- .navbar-nav > li > a {
75
- padding: 5px 10px 5px 10px;
76
- margin: 5px 5px 5px 5px;
77
- border-radius: 6px;
78
- }
79
-
1
+ /* BOOTSTRAP OVERRIDES */
2
+
3
+ .alert {
4
+ line-height: 22px;
5
+ padding: 10px 15px 10px 15px;
6
+ }
7
+
8
+ .alert-dismissible {
9
+ padding-right: 35px;
10
+ }
11
+
12
+ .navbar-toggle {
13
+ top: 54px;
14
+ left: 15px;
15
+ }
16
+
17
+ .navbar-brand {
18
+ padding-top: 10px;
19
+ padding-bottom: 25px;
20
+ }
21
+
22
+ .navbar-nav > li > a:hover,
23
+ .navbar-nav > li > a:focus {
24
+ color: #000000;
25
+ border: 1px solid #cdcdcd;
26
+ padding: 14px 9px 14px 9px;
27
+ }
28
+
29
+ .navbar-nav > .active > a,
30
+ .navbar-nav > .active > a:hover,
31
+ .navbar-nav > .active > a:focus {
32
+ color: #000000;
33
+ border: 0px;
34
+ padding: 15px 10px 15px 10px;
35
+ }
36
+
37
+ .navbar-nav > li > a {
38
+ color: #555555;
39
+ padding: 15px 10px 15px 10px;
40
+ margin: 3px 0px 3px 0px;
41
+ border-radius: 6px;
42
+ }
43
+
44
+ .pagination {
45
+ margin: 10px 0px 0px 0px;
46
+ }
47
+
48
+ @media screen and (min-width: 768px) {
49
+
50
+ .navbar-brand {
51
+ padding-top: 5px;
52
+ padding-bottom: 5px;
53
+ margin-left: 1px;
54
+ }
55
+
56
+ .navbar-nav {
57
+ margin-top: 15px;
58
+ margin-bottom: 15px;
59
+ }
60
+
61
+ .navbar-nav > li > a:hover,
62
+ .navbar-nav > li > a:focus {
63
+ border: 1px solid #cdcdcd;
64
+ padding: 4px 9px 4px 9px;
65
+ }
66
+
67
+ .navbar-nav > .active > a,
68
+ .navbar-nav > .active > a:hover,
69
+ .navbar-nav > .active > a:focus {
70
+ border: 0px;
71
+ padding: 5px 10px 5px 10px;
72
+ }
73
+
74
+ .navbar-nav > li > a {
75
+ padding: 5px 10px 5px 10px;
76
+ margin: 5px 5px 5px 5px;
77
+ border-radius: 6px;
78
+ }
79
+
80
80
  }
@@ -1,270 +1,270 @@
1
- /*
2
- *= require ./bootstrap.css
3
- *= require ./bootstrap-glyphicons.css
4
- *= require ./caseadilla-bootstrap-overrides.css
5
- *= require ./bootstrap-wysihtml5.css
6
- */
7
-
8
- /* Caseadilla LAYOUT */
9
-
10
- @media (min-width: 992px){
11
-
12
- #left-column {
13
- float: left;
14
- }
15
-
16
- #right-column {
17
- float: right;
18
- }
19
-
20
- }
21
-
22
- /* Caseadilla NAVIGATION BAR */
23
-
24
- .caseadilla-tab-separator {
25
- display: none;
26
- }
27
-
28
- @media (min-width: 768px){
29
- .caseadilla-tab-separator {
30
- display: block;
31
- float: left;
32
- width: 9px;
33
- height: 12px;
34
- border-right: 1px solid #cdcdcd;
35
- margin-right: 10px;
36
- margin-top: 15px;
37
- }
38
- }
39
-
40
- #user-info {
41
- font-size: 12px;
42
- padding-top: 10px;
43
- height: auto;
44
- }
45
-
46
- #user-info ul {
47
- list-style: none;
48
- float: right;
49
- }
50
-
51
- #user-info li {
52
- float: left;
53
- border-right: 1px solid #ddd;
54
- padding: 3px 8px 3px 8px;
55
- margin: 0;
56
- color: #888;
57
- }
58
-
59
- #user-info li.last-item {
60
- border-right: none;
61
- }
62
-
63
- #user-info li a {
64
- color: #555;
65
- text-decoration: none;
66
- }
67
-
68
- #user-info li a:hover {
69
- color: #000;
70
- border-bottom: 1px solid #000;
71
- }
72
-
73
- #user-info li.signout:hover {
74
- border-radius: 6px;
75
- background-color: #da0404;
76
- }
77
-
78
- #user-info li.signout a:hover {
79
- color: #eee;
80
- border-bottom: none;
81
- }
82
-
83
- #user-info li.signout:hover a {
84
- color: #eee;
85
- }
86
-
87
- /* Caseadilla CONTENT GENERAL */
88
-
89
- .password-checkbox {
90
- margin-bottom: 15px;
91
- }
92
-
93
- small.pagination-details {
94
- font-size: 0.5em;
95
- }
96
-
97
- div#content {
98
- margin-bottom: 20px;
99
- }
100
-
101
- #content h2 {
102
- font-size: 20px;
103
- font-weight: bold;
104
- color: #111;
105
- border-bottom: 2px solid #eee;
106
- padding: 0 0 10px 0;
107
- margin: 0 0 15px 0;
108
- position: relative;
109
- line-height: 26px;
110
- }
111
-
112
- .content-bottom-padding {
113
- padding-bottom: 20px;
114
- }
115
-
116
- footer p {
117
- font-size: 10px;
118
- text-align: right;
119
- color: #ccc;
120
- }
121
-
122
- footer p a {
123
- color: #ccc;
124
- }
125
-
126
- footer p a:hover {
127
- color: #aaa;
128
- }
129
-
130
- .icon {
131
- position: relative;
132
- top: 1px;
133
- float: left;
134
- height: 14px;
135
- width: 14px;
136
- margin-right: 5px;
137
- font-size: 14px;
138
- padding: 0px;
139
- vertical-align: baseline;
140
- }
141
-
142
- /* Caseadilla TABLES */
143
-
144
- #content .table {
145
- border-collapse: collapse;
146
- width: 100%;
147
- font-size: 12px;
148
- border-bottom: 2px solid #ccc;
149
- }
150
-
151
- #content .table .center {
152
- text-align: center;
153
- }
154
-
155
- #content .table .icon {
156
- width: 16px;
157
- }
158
-
159
- #content .table thead {
160
- border-bottom: 2px solid #ccc;
161
- }
162
-
163
- #content .table th div.table-header-icon {
164
- display: inline-block;
165
- margin-left: 5px;
166
- width: 12px;
167
- height: 12px;
168
- color: #555;
169
- position: relative;
170
- top: 1px;
171
- }
172
-
173
- #content .table td {
174
- padding: 0px;
175
- font-size: 12px;
176
- margin: 0px;
177
- line-height: 18px;
178
- }
179
-
180
- #content .table td a {
181
- display: block;
182
- color: #333;
183
- text-decoration: none;
184
- padding: 15px 10px 15px 10px;
185
- }
186
-
187
- #content .table td .no-link {
188
- display: block;
189
- color: #333;
190
- padding: 15px 10px 15px 10px;
191
- }
192
-
193
- .iconRow {
194
- height: 16px;
195
- width: 16px;
196
- padding: 2px;
197
- font-size: 12px;
198
- }
199
-
200
- #content .table td.locked {
201
- width: 30px;
202
- padding: 13px 10px 0px 10px;
203
- }
204
-
205
- #content .table td.delete {
206
- width: 30px;
207
- }
208
-
209
- #content .table td.delete:hover .iconRow {
210
- border-radius: 4px;
211
- background-color: #da0404;
212
- color: #ffffff;
213
- }
214
-
215
- #content .table td.delete a {
216
- padding: 13px 10px 0px 10px;
217
- }
218
-
219
- #content .submits {
220
- width: 100%;
221
- text-align: right;
222
- border-radius: 4px;
223
- font-size: 12px;
224
- padding: 10px 10px;
225
- background-color: #eee;
226
- margin-bottom: 30px;
227
- }
228
-
229
- /* Caseadilla FORMS */
230
-
231
- label.control-label small {
232
- font-weight: normal;
233
- color: #666;
234
- margin-left: 5px;
235
- font-size: 0.8em;
236
- }
237
-
238
- .caseadilla-date-select select {
239
- width: 28%;
240
- display: inline-block;
241
- margin-left: 2%;
242
- margin-right: 2%
243
- }
244
-
245
- .caseadilla-time-select select {
246
- width: 44%;
247
- display: inline-block;
248
- margin-left: 2%;
249
- margin-right: 2%
250
- }
251
-
252
- .caseadilla-datetime-select select {
253
- width: 27%;
254
- display: inline-block;
255
- margin-left: 2%;
256
- margin-right: 2%;
257
- margin-bottom: 20px;
258
- }
259
-
260
- ul.wysihtml5-toolbar ul.dropdown-menu {
261
- top: 84px;
262
- left: 5px;
263
- }
264
-
265
- @media (min-width: 992px){
266
- div.col-lg-12 .caseadilla-datetime-select select {
267
- width: 14%;
268
- margin-bottom: 0px;
269
- }
1
+ /*
2
+ *= require ./bootstrap.css
3
+ *= require ./bootstrap-glyphicons.css
4
+ *= require ./caseadilla-bootstrap-overrides.css
5
+ *= require ./bootstrap-wysihtml5.css
6
+ */
7
+
8
+ /* Caseadilla LAYOUT */
9
+
10
+ @media (min-width: 992px){
11
+
12
+ #left-column {
13
+ float: left;
14
+ }
15
+
16
+ #right-column {
17
+ float: right;
18
+ }
19
+
20
+ }
21
+
22
+ /* Caseadilla NAVIGATION BAR */
23
+
24
+ .caseadilla-tab-separator {
25
+ display: none;
26
+ }
27
+
28
+ @media (min-width: 768px){
29
+ .caseadilla-tab-separator {
30
+ display: block;
31
+ float: left;
32
+ width: 9px;
33
+ height: 12px;
34
+ border-right: 1px solid #cdcdcd;
35
+ margin-right: 10px;
36
+ margin-top: 15px;
37
+ }
38
+ }
39
+
40
+ #user-info {
41
+ font-size: 12px;
42
+ padding-top: 10px;
43
+ height: auto;
44
+ }
45
+
46
+ #user-info ul {
47
+ list-style: none;
48
+ float: right;
49
+ }
50
+
51
+ #user-info li {
52
+ float: left;
53
+ border-right: 1px solid #ddd;
54
+ padding: 3px 8px 3px 8px;
55
+ margin: 0;
56
+ color: #888;
57
+ }
58
+
59
+ #user-info li.last-item {
60
+ border-right: none;
61
+ }
62
+
63
+ #user-info li a {
64
+ color: #555;
65
+ text-decoration: none;
66
+ }
67
+
68
+ #user-info li a:hover {
69
+ color: #000;
70
+ border-bottom: 1px solid #000;
71
+ }
72
+
73
+ #user-info li.signout:hover {
74
+ border-radius: 6px;
75
+ background-color: #da0404;
76
+ }
77
+
78
+ #user-info li.signout a:hover {
79
+ color: #eee;
80
+ border-bottom: none;
81
+ }
82
+
83
+ #user-info li.signout:hover a {
84
+ color: #eee;
85
+ }
86
+
87
+ /* Caseadilla CONTENT GENERAL */
88
+
89
+ .password-checkbox {
90
+ margin-bottom: 15px;
91
+ }
92
+
93
+ small.pagination-details {
94
+ font-size: 0.5em;
95
+ }
96
+
97
+ div#content {
98
+ margin-bottom: 20px;
99
+ }
100
+
101
+ #content h2 {
102
+ font-size: 20px;
103
+ font-weight: bold;
104
+ color: #111;
105
+ border-bottom: 2px solid #eee;
106
+ padding: 0 0 10px 0;
107
+ margin: 0 0 15px 0;
108
+ position: relative;
109
+ line-height: 26px;
110
+ }
111
+
112
+ .content-bottom-padding {
113
+ padding-bottom: 20px;
114
+ }
115
+
116
+ footer p {
117
+ font-size: 10px;
118
+ text-align: right;
119
+ color: #ccc;
120
+ }
121
+
122
+ footer p a {
123
+ color: #ccc;
124
+ }
125
+
126
+ footer p a:hover {
127
+ color: #aaa;
128
+ }
129
+
130
+ .icon {
131
+ position: relative;
132
+ top: 1px;
133
+ float: left;
134
+ height: 14px;
135
+ width: 14px;
136
+ margin-right: 5px;
137
+ font-size: 14px;
138
+ padding: 0px;
139
+ vertical-align: baseline;
140
+ }
141
+
142
+ /* Caseadilla TABLES */
143
+
144
+ #content .table {
145
+ border-collapse: collapse;
146
+ width: 100%;
147
+ font-size: 12px;
148
+ border-bottom: 2px solid #ccc;
149
+ }
150
+
151
+ #content .table .center {
152
+ text-align: center;
153
+ }
154
+
155
+ #content .table .icon {
156
+ width: 16px;
157
+ }
158
+
159
+ #content .table thead {
160
+ border-bottom: 2px solid #ccc;
161
+ }
162
+
163
+ #content .table th div.table-header-icon {
164
+ display: inline-block;
165
+ margin-left: 5px;
166
+ width: 12px;
167
+ height: 12px;
168
+ color: #555;
169
+ position: relative;
170
+ top: 1px;
171
+ }
172
+
173
+ #content .table td {
174
+ padding: 0px;
175
+ font-size: 12px;
176
+ margin: 0px;
177
+ line-height: 18px;
178
+ }
179
+
180
+ #content .table td a {
181
+ display: block;
182
+ color: #333;
183
+ text-decoration: none;
184
+ padding: 15px 10px 15px 10px;
185
+ }
186
+
187
+ #content .table td .no-link {
188
+ display: block;
189
+ color: #333;
190
+ padding: 15px 10px 15px 10px;
191
+ }
192
+
193
+ .iconRow {
194
+ height: 16px;
195
+ width: 16px;
196
+ padding: 2px;
197
+ font-size: 12px;
198
+ }
199
+
200
+ #content .table td.locked {
201
+ width: 30px;
202
+ padding: 13px 10px 0px 10px;
203
+ }
204
+
205
+ #content .table td.delete {
206
+ width: 30px;
207
+ }
208
+
209
+ #content .table td.delete:hover .iconRow {
210
+ border-radius: 4px;
211
+ background-color: #da0404;
212
+ color: #ffffff;
213
+ }
214
+
215
+ #content .table td.delete a {
216
+ padding: 13px 10px 0px 10px;
217
+ }
218
+
219
+ #content .submits {
220
+ width: 100%;
221
+ text-align: right;
222
+ border-radius: 4px;
223
+ font-size: 12px;
224
+ padding: 10px 10px;
225
+ background-color: #eee;
226
+ margin-bottom: 30px;
227
+ }
228
+
229
+ /* Caseadilla FORMS */
230
+
231
+ label.control-label small {
232
+ font-weight: normal;
233
+ color: #666;
234
+ margin-left: 5px;
235
+ font-size: 0.8em;
236
+ }
237
+
238
+ .caseadilla-date-select select {
239
+ width: 28%;
240
+ display: inline-block;
241
+ margin-left: 2%;
242
+ margin-right: 2%
243
+ }
244
+
245
+ .caseadilla-time-select select {
246
+ width: 44%;
247
+ display: inline-block;
248
+ margin-left: 2%;
249
+ margin-right: 2%
250
+ }
251
+
252
+ .caseadilla-datetime-select select {
253
+ width: 27%;
254
+ display: inline-block;
255
+ margin-left: 2%;
256
+ margin-right: 2%;
257
+ margin-bottom: 20px;
258
+ }
259
+
260
+ ul.wysihtml5-toolbar ul.dropdown-menu {
261
+ top: 84px;
262
+ left: 5px;
263
+ }
264
+
265
+ @media (min-width: 992px){
266
+ div.col-lg-12 .caseadilla-datetime-select select {
267
+ width: 14%;
268
+ margin-bottom: 0px;
269
+ }
270
270
  }