caboose-cms 0.4.91 → 0.4.92

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmUyZjdjZjZmYTAzZmJhOTk4NzkwMDE0MjBiYmY0MDQ3NmYyN2Q5Ng==
4
+ NjViNTc2NTVlNTk0MjE5NjJhY2ZiM2QwOGY5YWEzYjkwZDA4YzBkMw==
5
5
  data.tar.gz: !binary |-
6
- NGYzZmQ4ZGQ1OGRjNGU1MjRlZmRjODc0ZTNhOGZjMmMwOTBhYTY1ZA==
6
+ NmI5NTUzY2VjNzY0OWMzZDYwNWY3Nzk3MDM1ZjE0MGQyZjJiMTkyOA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YjhlNjc2NjZhOTNlMDU1N2E3ODdmYWRhNTc4NDQ5NDczOWU2NTFlMTU0ZTJl
10
- OGRiM2VmYTA2ZjhiYjY3ZDE1NTI0NDMzNGQ2ZTNjNzVlZmYzM2IwYTEzN2Fl
11
- ODE4ODU2YjY5YmQ5N2VjNjkzMzNmZTM1Y2M5MzY0NjYwNDQ1MGE=
9
+ YWEzZDY3NWJkZWI5MDkxN2E5ODZjNTJhMjFhMmJjNDMwNmI0OTIwMmNlNmQx
10
+ ZWVjZTMwOTYyZDhmZTAyMDFmN2M1NzQxOGU3NTNlNTYwZGFmODZkMTkzYWUy
11
+ ZjAzM2ZmMmNhZDE1NWI3ZjE0MDlhMTk1MDcxMDQ4N2UxNTliOTY=
12
12
  data.tar.gz: !binary |-
13
- ZDg4ZjQ0YzJmN2JiODk2N2ZjMGVlNTYzMmZjOGZkNzA3YTllZTFhNTEzZDZh
14
- YmM3OWE0OTI1NTg4MDhmZGFhYzY0YmQ2M2NkZjNmZjU3ZTE3MmY5ZTc4MmE3
15
- MGUyODIxNTU5ODgzYmYxZTg3NzEzYWZhOWNjMzYwNTVmMDcwMTM=
13
+ OTE1OTQ0ZTczYTA5ZDI4MTFkYWEyZTQ1ZWVjMmNkOGQ1NjFkNzkwYTcxOThk
14
+ MmRiOWM5Y2EzYWQ5OGY1NmZiZjYyZGQ4NDIzMTFjYzI3NDRkNzA1MGI1Mjcx
15
+ N2Y3NDcyYjViZTYxNGQ3MGZlYWZlNzY0YzUwNGZlZmZmYmNlZDk=
@@ -13,474 +13,6 @@
13
13
  *= require caboose/fonts
14
14
  *= require caboose/caboose
15
15
  *= require caboose/model_binder
16
- */
17
-
18
- #cboxLoadedContent { margin-bottom: 0; }
19
-
20
-
21
- body {
22
- margin: 0;
23
- padding: 0;
24
- font-family: "Avenir", serif;
25
- }
26
-
27
- #cboxOverlay {
28
- opacity: 0.85 !important;
29
- background: url('/assets/caboose/modal_overlay.png') !important;
30
- }
31
-
32
- #cboxWrapper {
33
- -webkit-border-radius: 7px !important;
34
- -moz-border-radius: 7px !important;
35
- border-radius: 7px !important;
36
- }
37
-
38
- #top_nav {
39
- background: #000;
40
- border-bottom: #333 1px solid;
41
- height: 50px;
42
- position: relative;
43
- }
44
-
45
- #top_nav .caboose_logo {
46
- position: absolute;
47
- top: 0;
48
- left: 0;
49
- width: 50px;
50
- height: 50px;
51
- background: url(/assets/caboose/caboose_logo_small.png);
52
- }
53
-
54
- #top_nav ul {
55
- margin: 0;
56
- padding: 0 8px 0 0;
57
- list-style: none;
58
- text-align: right;
59
- }
60
-
61
- #top_nav ul li {
62
- margin: 0;
63
- padding: 0;
64
- list-style: none;
65
- display: inline-block;
66
- }
67
-
68
- #top_nav ul li a {
69
- display: block;
70
- margin: 8px 4px;
71
- padding: 8px 16px;
72
- border: #333 1px solid;
73
- text-decoration: none;
74
- height: 16px;
75
- }
76
-
77
- #top_nav ul li a { color: #ccc; border: #333 1px solid; background: #000; }
78
- #top_nav ul li a:hover { color: #fff; border: #444 1px solid; background: #000; }
79
- #top_nav ul li a:active { color: #fff; border: #666 1px solid; background: #333; }
80
-
81
- #content_wrapper {
82
- position: relative;
83
- }
84
-
85
- #content {
86
- padding: 0 0 0 30px;
87
- }
88
-
89
- #content h1 {
90
- margin: 0 0 20px -30px;
91
- padding: 40px 0 0 30px;
92
- height: 80px;
93
- background: #e1e1e1;
94
- border-bottom: #aaa 1px solid;
95
- font-size: 36pt;
96
- }
97
-
98
- #content h1.model_attribute_h1 {
99
- margin: inherit;
100
- padding: inherit;
101
- height: auto;
102
- background: transparent;
103
- border-bottom: none;
104
- font-size: 36pt;
105
- }
106
-
107
- p.current_page_editing {
108
- position: absolute;
109
- top: 84px;
110
- left: 4px;
111
-
112
- margin: 0;
113
- padding: 10px 10px 10px 30px;
114
- }
115
-
116
- #content p.loading {
117
- background-image: url('/assets/caboose/loading_black_on_white.gif');
118
- background-position: 0 center;
119
- background-repeat: no-repeat;
120
- color: #000;
121
- font-weight: normal;
122
- font-size: 16pt;
123
- padding: 10px 10px 10px 40px;
124
- }
125
-
126
- #content div.yesnobox {
127
- position: absolute;
128
- top: 0;
129
- left: 0;
130
- z-index: 22;
131
- background-color: rgba(0, 0, 0, 0.9);
132
- font-size: 20px;
133
- text-align: center;
134
- }
135
-
136
- #content div.yesnobox div {
137
- padding: 20px;
138
- }
139
-
140
- #content div.yesnobox input {
141
- width: auto;
142
- }
143
-
144
- div.model_attribute_text {
145
- color: #000;
146
- }
147
-
148
- #content div.top_right_controls {
149
- position: absolute;
150
- top: 0;
151
- right: 0;
152
- }
153
-
154
- #content div.top_right_controls a {
155
- display: inline-block;
156
- margin: 0;
157
- padding: 4px 8px;
158
- }
159
-
160
- input, select, textarea {
161
- font-family: Helvetica, arial;
162
- border: 1px solid #ccc;
163
- -moz-border-radius: 2px;
164
- -webkit-border-radius: 2px;
165
- border-radius: 2px;
166
- padding: 4px 8px;
167
- height: 34px;
168
- font-size: 20px;
169
- z-index: 20;
170
- }
171
-
172
- input.dirty,
173
- textarea.dirty {
174
- background: #fff799;
175
- }
176
-
177
- select {
178
- padding: 0;
179
- height: 44px;
180
- }
181
-
182
- option {
183
-
184
- }
185
-
186
- select.fake {
187
- background: transparent;
188
- position: absolute;
189
- top: 0;
190
- left: 0;
191
- color: transparent;
192
- }
193
-
194
- select.fake option {
195
- background: #fff;
196
- color: #000;
197
- }
198
-
199
- #content .bound_input_check a,
200
- #content .bound_input_cancel a {
201
- border: 1px solid #ccc;
202
- -moz-border-radius: 2px;
203
- -webkit-border-radius: 2px;
204
- border-radius: 2px;
205
-
206
- font-size: 28px;
207
- text-align: center;
208
- background: #00cc00;
209
- color: #fff;
210
-
211
- display: block;
212
- padding: 4px 0;
213
- height: 34px;
214
- }
215
-
216
- #content .bound_input_check a.loading {
217
- background-image: url(/assets/caboose/loading_green.gif);
218
- background-color: #00cc00;
219
- background-repeat: no-repeat;
220
- background-position: 6px 5px;
221
- color: rgba(255, 255, 255, 0.0);
222
- }
223
-
224
- #content .bound_textarea_controls a {
225
- display: inline-block;
226
- margin: 3px 0 0 1px;
227
- padding: 8px 0 6px 0;
228
- background: #ccc;
229
- color: #000;
230
- text-align: center;
231
- border: #666 1px solid;
232
- }
233
-
234
- #content .bound_textarea_controls a.save { width: 60px; }
235
- #content .bound_textarea_controls a.discard { width: 80px; }
236
-
237
- #content .note,
238
- #content .error {
239
- margin: 0;
240
- }
241
-
242
- #content .placeholder {
243
- display: block;
244
- margin: 0;
245
- padding: 0 5px 0 0;
246
- height: 34px;
247
-
248
- position: absolute;
249
- top: 12px;
250
- left: 10px;
251
- z-index: 19;
252
- }
253
-
254
- #content .placeholder span {
255
- display: block;
256
- font-size: 20px;
257
- color: #757575;
258
- }
259
-
260
- #content .mb_container input[type='checkbox'] {
261
- position: absolute;
262
- top: 4px;
263
- left: 0;
264
- z-index: 19;
265
- }
266
-
267
- #content input[type='checkbox'] {
268
- margin: 0;
269
- padding: 0;
270
- width: 20px;
271
- }
272
-
273
- #content .search_form {
274
- position: absolute;
275
- top: 0;
276
- right: 0;
277
- }
278
-
279
- #content table.data {
280
- border-collapse: collapse;
281
- }
282
-
283
- #content table.data th {
284
- background: #333;
285
- border: #333 1px solid;
286
- color: #fff;
287
- margin: 0;
288
- padding: 0;
289
- }
290
-
291
- #content table.data th a {
292
- color: #fff;
293
- display: block;
294
- text-decoration: none;
295
- border: none;
296
- padding: 8px 12px;
297
- }
298
-
299
- #content table.data th a:hover {
300
- color: #000;
301
- background: #fff;
302
- }
303
-
304
- #content table.data td {
305
- background: #fff;
306
- border: #333 1px solid;
307
- margin: 0;
308
- padding: 8px 12px;
309
- }
310
-
311
- #content table.data tr:nth-child(even) td {
312
- background-color: #efefef;
313
- }
314
-
315
-
316
- #content table.data tr:nth-child(odd) td {
317
- background-color: transparent;
318
- }
319
-
320
- #content table.data tr:hover td,
321
- #content table.data tr:nth-child(even):hover td,
322
- #content table.data tr:nth-child(odd):hover td {
323
- background: #fff799;
324
- cursor: pointer;
325
- cursor: hand;
326
- }
327
-
328
- /*******************************************************************************
329
- Modeljs
330
- *******************************************************************************/
331
-
332
- #content div.model_attribute_text {
333
- color: #fff;
334
- }
335
-
336
- #content .model_attribute {
337
- background: none repeat scroll 0 0 transparent;
338
- display: block;
339
- padding: 2px 4px;
340
- text-decoration: none;
341
- }
342
-
343
- #content .clear {
344
- clear: both;
345
- line-height: 0;
346
- }
347
-
348
- /*******************************************************************************
349
- Message boxes
350
- *******************************************************************************/
351
-
352
- #content .note {
353
- padding: 20px;
354
- background: #fef49c;
355
- color: #000000;
356
- font-weight: bold;
357
- font-size: 1.4em;
358
- }
359
-
360
- #content .note_small {
361
- display: block;
362
- padding: 4px 10px;
363
- background: #fef49c;
364
- color: #000000;
365
- font-size: 1em;
366
- }
367
-
368
- #content .error {
369
- background: #9c171b;
370
- color: #ffffff;
371
- }
372
-
373
- #content .error a {
374
- color: #fff;
375
- }
376
-
377
- #content .error a:hover {
378
- color: #000;
379
- }
380
-
381
- #content .success {
382
- background: #009900;
383
- color: #ffffff;
384
- }
385
-
386
- #content .success a {
387
- color: #ffffff;
388
- }
389
-
390
- /*******************************************************************************
391
- Page Bar Generator
392
- *******************************************************************************/
393
-
394
- .page_links {
395
-
396
- }
397
-
398
- .page_links a {
399
- display: inline-block;
400
- margin: 0 2px;
401
- padding: 5px 8px 3px 8px;
402
-
403
- border: #333 1px solid;
404
- background: #333;
405
- color: #fff;
406
- text-decoration: none;
407
- }
408
-
409
- .page_links a:hover {
410
- background: #505050;
411
- color: #fff;
412
- }
413
-
414
- .page_links .middle_links a {
415
-
416
- }
417
-
418
- .page_links span.current_page {
419
- display: inline-block;
420
- padding: 5px 8px 3px 8px;
421
-
422
- border: #333 1px solid;
423
- background: #ccc;
424
- color: #000;
425
- text-decoration: none;
426
- }
427
-
428
- #search_form input[type='text'] { height: 20px; padding: 6px 12px; }
429
- #search_form input[type='submit'] { height: 35px; padding: 0 12px; }
430
-
431
-
432
- /******************************************************************************/
433
-
434
- #tabs {
435
- width: 200px;
436
- float: left;
437
- /*
438
- position: absolute;
439
- top: 41px;
440
- left: 0;
441
- */
442
- list-style: none;
443
- margin: -20px 0 0 -30px;
444
- padding: 0;
445
- border-top: #ccc 0px solid;
446
- }
447
- #tabs ul li {
448
- list-style: none;
449
- margin: 0;
450
- padding: 0;
451
- }
452
- #tabs li.back {
453
- padding: 10px;
454
- }
455
- #tabs a {
456
- display: block;
457
- margin: 0;
458
- padding: 16px 12px 12px 12px;
459
- text-decoration: none;
460
- background: #efefef;
461
- border-bottom: #ccc 1px solid;
462
- color: #000;
463
- }
464
- #tabs a:hover {
465
- background: #666;
466
- color: #fff;
467
- }
468
- #tabs li.selected a {
469
- background: transparent;
470
- color: #000;
471
- font-weight: bold;
472
- }
473
- #content2 {
474
- margin-left: 220px;
475
- }
476
-
477
- #crumbtrail {
478
- position: absolute;
479
- top: -36px;
480
- left: 54px;
481
- color: #fff;
482
- }
483
-
484
- #crumbtrail a {
485
- color: #fff;
486
- }
16
+ *= require caboose/admin_main
17
+ *= require caboose/admin_crumbtrail
18
+ */
@@ -0,0 +1,82 @@
1
+
2
+ $off-bg-color: #282828;
3
+ $off-text-color: #999;
4
+ $hover-bg-color: #666;
5
+ $hover-text-color: #fff;
6
+ $current-bg-color: #333;
7
+ $current-text-color: #ccc;
8
+
9
+ ul#crumbtrail {
10
+ position: absolute;
11
+ top: -42px;
12
+ left: 54px;
13
+ color: #fff;
14
+
15
+ margin: 0 0 20px 0;
16
+ padding: 0;
17
+ list-style: none;
18
+ text-align: center;
19
+
20
+ li {
21
+ margin: 0 5px;
22
+ padding: 0;
23
+ list-style: none;
24
+ display: inline;
25
+
26
+ a {
27
+ white-space: nowrap;
28
+ display: inline-block;
29
+ margin: 0;
30
+ position: relative;
31
+ height: 32px;
32
+ background: $off-bg-color;
33
+ color: $off-text-color;
34
+ z-index: 20;
35
+ text-decoration: none !important;
36
+ span { display: block; padding: 7px 4px 0 5px; font-size: 10pt; }
37
+ }
38
+ a:hover { background: $hover-bg-color; color: $hover-text-color; }
39
+
40
+ a:before {
41
+ content: ' ';
42
+ height: 0;
43
+ position: absolute;
44
+ top: 0;
45
+ left: -6px;
46
+ width: 0;
47
+ border: 16px solid transparent;
48
+ border-width: 16px 6px;
49
+ border-top-color: $off-bg-color;
50
+ border-right-color: transparent;
51
+ border-bottom-color: $off-bg-color;
52
+ border-left-color: transparent;
53
+ z-index: 19;
54
+ }
55
+ a:hover:before {
56
+ border-top-color: $hover-bg-color;
57
+ border-bottom-color: $hover-bg-color;
58
+ }
59
+
60
+ a:after {
61
+ content: ' ';
62
+ height: 0;
63
+ position: absolute;
64
+ top: 0;
65
+ right: -12px;
66
+ width: 0;
67
+ border: 16px solid transparent;
68
+ border-width: 16px 6px;
69
+ border-left-color: $off-bg-color;
70
+ z-index: 19;
71
+ }
72
+ a:hover:after {
73
+ border-left-color: $hover-bg-color;
74
+ }
75
+
76
+ &.current {
77
+ a { background: $current-bg-color; color: $current-text-color; }
78
+ a:before { border-top-color: $current-bg-color; border-bottom-color: $current-bg-color; }
79
+ a:after { border-left-color: $current-bg-color; }
80
+ }
81
+ }
82
+ }
@@ -0,0 +1,469 @@
1
+ #cboxLoadedContent { margin-bottom: 0; }
2
+
3
+
4
+ body {
5
+ margin: 0;
6
+ padding: 0;
7
+ font-family: "Avenir", serif;
8
+ }
9
+
10
+ #cboxOverlay {
11
+ opacity: 0.85 !important;
12
+ background: url('/assets/caboose/modal_overlay.png') !important;
13
+ }
14
+
15
+ #cboxWrapper {
16
+ -webkit-border-radius: 7px !important;
17
+ -moz-border-radius: 7px !important;
18
+ border-radius: 7px !important;
19
+ }
20
+
21
+ #top_nav {
22
+ background: #000;
23
+ border-bottom: #333 1px solid;
24
+ height: 50px;
25
+ position: relative;
26
+ }
27
+
28
+ #top_nav .caboose_logo {
29
+ position: absolute;
30
+ top: 0;
31
+ left: 0;
32
+ width: 50px;
33
+ height: 50px;
34
+ background: url(/assets/caboose/caboose_logo_small.png);
35
+ }
36
+
37
+ #top_nav ul {
38
+ margin: 0;
39
+ padding: 0 8px 0 0;
40
+ list-style: none;
41
+ text-align: right;
42
+ }
43
+
44
+ #top_nav ul li {
45
+ margin: 0;
46
+ padding: 0;
47
+ list-style: none;
48
+ display: inline-block;
49
+ }
50
+
51
+ #top_nav ul li a {
52
+ display: block;
53
+ margin: 8px 4px;
54
+ padding: 8px 16px;
55
+ border: #333 1px solid;
56
+ text-decoration: none;
57
+ height: 16px;
58
+ }
59
+
60
+ #top_nav ul li a { color: #ccc; border: #333 1px solid; background: #000; }
61
+ #top_nav ul li a:hover { color: #fff; border: #444 1px solid; background: #000; }
62
+ #top_nav ul li a:active { color: #fff; border: #666 1px solid; background: #333; }
63
+
64
+ #content_wrapper {
65
+ position: relative;
66
+ }
67
+
68
+ #content {
69
+ padding: 0 0 0 30px;
70
+ }
71
+
72
+ #content h1 {
73
+ margin: 0 0 20px -30px;
74
+ padding: 40px 0 0 30px;
75
+ height: 80px;
76
+ background: #e1e1e1;
77
+ border-bottom: #aaa 1px solid;
78
+ font-size: 36pt;
79
+ }
80
+
81
+ #content h1.model_attribute_h1 {
82
+ margin: inherit;
83
+ padding: inherit;
84
+ height: auto;
85
+ background: transparent;
86
+ border-bottom: none;
87
+ font-size: 36pt;
88
+ }
89
+
90
+ p.current_page_editing {
91
+ position: absolute;
92
+ top: 84px;
93
+ left: 4px;
94
+
95
+ margin: 0;
96
+ padding: 10px 10px 10px 30px;
97
+ }
98
+
99
+ #content p.loading {
100
+ background-image: url('/assets/caboose/loading_black_on_white.gif');
101
+ background-position: 0 center;
102
+ background-repeat: no-repeat;
103
+ color: #000;
104
+ font-weight: normal;
105
+ font-size: 16pt;
106
+ padding: 10px 10px 10px 40px;
107
+ }
108
+
109
+ #content div.yesnobox {
110
+ position: absolute;
111
+ top: 0;
112
+ left: 0;
113
+ z-index: 22;
114
+ background-color: rgba(0, 0, 0, 0.9);
115
+ font-size: 20px;
116
+ text-align: center;
117
+ }
118
+
119
+ #content div.yesnobox div {
120
+ padding: 20px;
121
+ }
122
+
123
+ #content div.yesnobox input {
124
+ width: auto;
125
+ }
126
+
127
+ div.model_attribute_text {
128
+ color: #000;
129
+ }
130
+
131
+ #content div.top_right_controls {
132
+ position: absolute;
133
+ top: 0;
134
+ right: 0;
135
+ }
136
+
137
+ #content div.top_right_controls a {
138
+ display: inline-block;
139
+ margin: 0;
140
+ padding: 4px 8px;
141
+ }
142
+
143
+ input, select, textarea {
144
+ font-family: Helvetica, arial;
145
+ border: 1px solid #ccc;
146
+ -moz-border-radius: 2px;
147
+ -webkit-border-radius: 2px;
148
+ border-radius: 2px;
149
+ padding: 4px 8px;
150
+ height: 34px;
151
+ font-size: 20px;
152
+ z-index: 20;
153
+ }
154
+
155
+ input.dirty,
156
+ textarea.dirty {
157
+ background: #fff799;
158
+ }
159
+
160
+ select {
161
+ padding: 0;
162
+ height: 44px;
163
+ }
164
+
165
+ option {
166
+
167
+ }
168
+
169
+ select.fake {
170
+ background: transparent;
171
+ position: absolute;
172
+ top: 0;
173
+ left: 0;
174
+ color: transparent;
175
+ }
176
+
177
+ select.fake option {
178
+ background: #fff;
179
+ color: #000;
180
+ }
181
+
182
+ #content .bound_input_check a,
183
+ #content .bound_input_cancel a {
184
+ border: 1px solid #ccc;
185
+ -moz-border-radius: 2px;
186
+ -webkit-border-radius: 2px;
187
+ border-radius: 2px;
188
+
189
+ font-size: 28px;
190
+ text-align: center;
191
+ background: #00cc00;
192
+ color: #fff;
193
+
194
+ display: block;
195
+ padding: 4px 0;
196
+ height: 34px;
197
+ }
198
+
199
+ #content .bound_input_check a.loading {
200
+ background-image: url(/assets/caboose/loading_green.gif);
201
+ background-color: #00cc00;
202
+ background-repeat: no-repeat;
203
+ background-position: 6px 5px;
204
+ color: rgba(255, 255, 255, 0.0);
205
+ }
206
+
207
+ #content .bound_textarea_controls a {
208
+ display: inline-block;
209
+ margin: 3px 0 0 1px;
210
+ padding: 8px 0 6px 0;
211
+ background: #ccc;
212
+ color: #000;
213
+ text-align: center;
214
+ border: #666 1px solid;
215
+ }
216
+
217
+ #content .bound_textarea_controls a.save { width: 60px; }
218
+ #content .bound_textarea_controls a.discard { width: 80px; }
219
+
220
+ #content .note,
221
+ #content .error {
222
+ margin: 0;
223
+ }
224
+
225
+ #content .placeholder {
226
+ display: block;
227
+ margin: 0;
228
+ padding: 0 5px 0 0;
229
+ height: 34px;
230
+
231
+ position: absolute;
232
+ top: 12px;
233
+ left: 10px;
234
+ z-index: 19;
235
+ }
236
+
237
+ #content .placeholder span {
238
+ display: block;
239
+ font-size: 20px;
240
+ color: #757575;
241
+ }
242
+
243
+ #content .mb_container input[type='checkbox'] {
244
+ position: absolute;
245
+ top: 4px;
246
+ left: 0;
247
+ z-index: 19;
248
+ }
249
+
250
+ #content input[type='checkbox'] {
251
+ margin: 0;
252
+ padding: 0;
253
+ width: 20px;
254
+ }
255
+
256
+ #content .search_form {
257
+ position: absolute;
258
+ top: 0;
259
+ right: 0;
260
+ }
261
+
262
+ #content table.data {
263
+ border-collapse: collapse;
264
+ }
265
+
266
+ #content table.data th {
267
+ background: #333;
268
+ border: #333 1px solid;
269
+ color: #fff;
270
+ margin: 0;
271
+ padding: 0;
272
+ }
273
+
274
+ #content table.data th a {
275
+ color: #fff;
276
+ display: block;
277
+ text-decoration: none;
278
+ border: none;
279
+ padding: 8px 12px;
280
+ }
281
+
282
+ #content table.data th a:hover {
283
+ color: #000;
284
+ background: #fff;
285
+ }
286
+
287
+ #content table.data td {
288
+ background: #fff;
289
+ border: #333 1px solid;
290
+ margin: 0;
291
+ padding: 8px 12px;
292
+ }
293
+
294
+ #content table.data tr:nth-child(even) td {
295
+ background-color: #efefef;
296
+ }
297
+
298
+
299
+ #content table.data tr:nth-child(odd) td {
300
+ background-color: transparent;
301
+ }
302
+
303
+ #content table.data tr:hover td,
304
+ #content table.data tr:nth-child(even):hover td,
305
+ #content table.data tr:nth-child(odd):hover td {
306
+ background: #fff799;
307
+ cursor: pointer;
308
+ cursor: hand;
309
+ }
310
+
311
+ /*******************************************************************************
312
+ Modeljs
313
+ *******************************************************************************/
314
+
315
+ #content div.model_attribute_text {
316
+ color: #fff;
317
+ }
318
+
319
+ #content .model_attribute {
320
+ background: none repeat scroll 0 0 transparent;
321
+ display: block;
322
+ padding: 2px 4px;
323
+ text-decoration: none;
324
+ }
325
+
326
+ #content .clear {
327
+ clear: both;
328
+ line-height: 0;
329
+ }
330
+
331
+ /*******************************************************************************
332
+ Message boxes
333
+ *******************************************************************************/
334
+
335
+ #content .note {
336
+ padding: 20px;
337
+ background: #fef49c;
338
+ color: #000000;
339
+ font-weight: bold;
340
+ font-size: 1.4em;
341
+ }
342
+
343
+ #content .note_small {
344
+ display: block;
345
+ padding: 4px 10px;
346
+ background: #fef49c;
347
+ color: #000000;
348
+ font-size: 1em;
349
+ }
350
+
351
+ #content .error {
352
+ background: #9c171b;
353
+ color: #ffffff;
354
+ }
355
+
356
+ #content .error a {
357
+ color: #fff;
358
+ }
359
+
360
+ #content .error a:hover {
361
+ color: #000;
362
+ }
363
+
364
+ #content .success {
365
+ background: #009900;
366
+ color: #ffffff;
367
+ }
368
+
369
+ #content .success a {
370
+ color: #ffffff;
371
+ }
372
+
373
+ /*******************************************************************************
374
+ Page Bar Generator
375
+ *******************************************************************************/
376
+
377
+ .page_links {
378
+
379
+ }
380
+
381
+ .page_links a {
382
+ display: inline-block;
383
+ margin: 0 2px;
384
+ padding: 5px 8px 3px 8px;
385
+
386
+ border: #333 1px solid;
387
+ background: #333;
388
+ color: #fff;
389
+ text-decoration: none;
390
+ }
391
+
392
+ .page_links a:hover {
393
+ background: #505050;
394
+ color: #fff;
395
+ }
396
+
397
+ .page_links .middle_links a {
398
+
399
+ }
400
+
401
+ .page_links span.current_page {
402
+ display: inline-block;
403
+ padding: 5px 8px 3px 8px;
404
+
405
+ border: #333 1px solid;
406
+ background: #ccc;
407
+ color: #000;
408
+ text-decoration: none;
409
+ }
410
+
411
+ #search_form input[type='text'] { height: 20px; padding: 6px 12px; }
412
+ #search_form input[type='submit'] { height: 35px; padding: 0 12px; }
413
+
414
+
415
+ /******************************************************************************/
416
+
417
+ #tabs {
418
+ width: 200px;
419
+ float: left;
420
+ /*
421
+ position: absolute;
422
+ top: 41px;
423
+ left: 0;
424
+ */
425
+ list-style: none;
426
+ margin: -20px 0 0 -30px;
427
+ padding: 0;
428
+ border-top: #ccc 0px solid;
429
+ }
430
+ #tabs ul li {
431
+ list-style: none;
432
+ margin: 0;
433
+ padding: 0;
434
+ }
435
+ #tabs li.back {
436
+ padding: 10px;
437
+ }
438
+ #tabs a {
439
+ display: block;
440
+ margin: 0;
441
+ padding: 16px 12px 12px 12px;
442
+ text-decoration: none;
443
+ background: #efefef;
444
+ border-bottom: #ccc 1px solid;
445
+ color: #000;
446
+ }
447
+ #tabs a:hover {
448
+ background: #666;
449
+ color: #fff;
450
+ }
451
+ #tabs li.selected a {
452
+ background: transparent;
453
+ color: #000;
454
+ font-weight: bold;
455
+ }
456
+ #content2 {
457
+ margin-left: 220px;
458
+ }
459
+
460
+ #crumbtrail {
461
+ position: absolute;
462
+ top: -36px;
463
+ left: 54px;
464
+ color: #fff;
465
+ }
466
+
467
+ #crumbtrail a {
468
+ color: #fff;
469
+ }
@@ -3,6 +3,6 @@ body {
3
3
  font-family: Helvetica, Tahoma, Arial;
4
4
  }
5
5
 
6
- .placeholder_js {
7
- color: #fff;
6
+ input[type='text'].placeholder_js {
7
+ color: #757575;
8
8
  }
@@ -27,7 +27,7 @@
27
27
  left: 0;
28
28
  color: transparent;
29
29
  background: transparent;
30
- height: 50px !important;
30
+ /*height: 50px !important;*/
31
31
  }
32
32
 
33
33
  .mb_container select.mb_fake option {
@@ -0,0 +1,33 @@
1
+ module Caboose
2
+ class Crumbtrail
3
+
4
+ @_crumbtrail = []
5
+
6
+ def self.add(url, text = nil)
7
+ #@_crumbtrail = []
8
+ if url.is_a?(Hash)
9
+ url.each do |url2, text2|
10
+ @_crumbtrail << [url2, text2]
11
+ end
12
+ else
13
+ @_crumbtrail << [url, text]
14
+ end
15
+ end
16
+
17
+ def self.print(url = nil, text = nil)
18
+ if url
19
+ self.add(url, text)
20
+ end
21
+
22
+ str = "<ul id='crumbtrail'>"
23
+ count = @_crumbtrail.count
24
+ @_crumbtrail.each_with_index do |arr, i|
25
+ is_last = i == (count - 1)
26
+ str << "<li#{ is_last ? " class='current'" : '' }><a href='#{ is_last ? '#' : arr[0] }'><span>#{arr[1]}</span></a></li>"
27
+ end
28
+ str << "</ul>"
29
+ return str
30
+ end
31
+
32
+ end
33
+ end
@@ -6,8 +6,8 @@ class Caboose::Schema < Caboose::Utilities::Schema
6
6
  {
7
7
  :roles_users => :role_memberships,
8
8
  :permissions_roles => :role_permissions,
9
- :page_block_field_values => :fields,
10
- :page_block_fields => :field_types,
9
+ #:page_block_field_values => :fields,
10
+ #:page_block_fields => :field_types,
11
11
  :page_block_types => :block_types,
12
12
  :page_blocks => :blocks
13
13
  }
@@ -99,7 +99,8 @@ class Caboose::Utilities::Schema
99
99
  return if self.renamed_tables.nil?
100
100
  c = ActiveRecord::Base.connection
101
101
  self.renamed_tables.each do |old_name, new_name|
102
- c.rename_table old_name, new_name if c.table_exists?(old_name)
102
+ next if !c.table_exists?(old_name) || c.table_exists?(new_name)
103
+ c.rename_table old_name, new_name
103
104
  end
104
105
  end
105
106
 
@@ -110,7 +111,7 @@ class Caboose::Utilities::Schema
110
111
  self.renamed_columns.each do |model, cols|
111
112
  next if !c.table_exists? model.table_name
112
113
  cols.each do |old_name, new_name|
113
- next if !c.column_exists? model.table_name, old_name
114
+ next if !c.column_exists?(model.table_name, old_name) || c.column_exists?(model.table_name, new_name)
114
115
  c.rename_column model.table_name, old_name, new_name
115
116
  end
116
117
  end
@@ -1,5 +1,5 @@
1
1
 
2
- <% if !@page.nil? && @page.title != 'Access Denied' %>
2
+ <% if @page && @page.title != 'Access Denied' %>
3
3
  <% content_for :js do %>
4
4
  <%= javascript_include_tag "caboose/application" %>
5
5
  <%= javascript_include_tag @site.name == 'application' ? 'application' : "#{@site.name}/js/application" %>
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.4.91'
2
+ VERSION = '0.4.92'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.91
4
+ version: 0.4.92
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-18 00:00:00.000000000 Z
11
+ date: 2014-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -232,7 +232,9 @@ files:
232
232
  - app/assets/javascripts/caboose/testing.js
233
233
  - app/assets/javascripts/tinymce/plugins/caboose/plugin.js
234
234
  - app/assets/stylesheets/caboose/admin.css
235
+ - app/assets/stylesheets/caboose/admin_crumbtrail.css.scss
235
236
  - app/assets/stylesheets/caboose/admin_images_index.css.scss
237
+ - app/assets/stylesheets/caboose/admin_main.css
236
238
  - app/assets/stylesheets/caboose/admin_page_edit_content.css
237
239
  - app/assets/stylesheets/caboose/application.css
238
240
  - app/assets/stylesheets/caboose/bound_input.css
@@ -300,6 +302,7 @@ files:
300
302
  - app/models/caboose/block_type_summary.rb
301
303
  - app/models/caboose/caboose_plugin.rb
302
304
  - app/models/caboose/core_plugin.rb
305
+ - app/models/caboose/crumbtrail.rb
303
306
  - app/models/caboose/database_session.rb
304
307
  - app/models/caboose/domain.rb
305
308
  - app/models/caboose/media_category.rb