rails_admin_content 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -11
  3. data/app/assets/images/common/backtop.png +0 -0
  4. data/app/assets/images/common/bg.gif +0 -0
  5. data/app/assets/images/common/bg_glow.png +0 -0
  6. data/app/assets/images/common/black_opacity12.png +0 -0
  7. data/app/assets/images/common/black_opacity20.png +0 -0
  8. data/app/assets/images/common/header_bg.png +0 -0
  9. data/app/assets/images/common/header_logo.png +0 -0
  10. data/app/assets/images/common/header_site.png +0 -0
  11. data/app/assets/images/common/home_center.png +0 -0
  12. data/app/assets/images/common/ra_backtop.png +0 -0
  13. data/app/assets/images/common/ra_tools.png +0 -0
  14. data/app/assets/images/common/sidebar_ie_bg.png +0 -0
  15. data/app/assets/images/common/sidebar_search.png +0 -0
  16. data/app/assets/javascripts/develop/manages.js.coffee +56 -18
  17. data/app/assets/javascripts/rails_admin_content.js +2 -1
  18. data/app/assets/stylesheets/develop/application/common.css.sass +780 -0
  19. data/app/assets/stylesheets/develop/application/forbidden.css.sass +24 -0
  20. data/app/assets/stylesheets/develop/application/login.css.sass +153 -0
  21. data/app/assets/stylesheets/develop/application.css.scss +6 -0
  22. data/app/assets/stylesheets/rails_admin_content.css +3 -5
  23. data/app/assets/stylesheets/site.css +2 -323
  24. data/app/controllers/rails_admin_content/develop/manages_controller.rb +1 -0
  25. data/app/views/layouts/rails_admin_content/admin.html.slim +42 -51
  26. data/app/views/rails_admin_content/develop/manages/_filter.html.slim +20 -22
  27. data/app/views/rails_admin_content/develop/manages/_header.html.slim +31 -0
  28. data/app/views/rails_admin_content/develop/manages/edit.html.slim +13 -15
  29. data/app/views/rails_admin_content/develop/manages/edit_column.html.slim +1 -1
  30. data/app/views/rails_admin_content/develop/manages/new.html.slim +10 -10
  31. data/app/views/rails_admin_content/develop/manages/query.html.slim +3 -2
  32. data/app/views/rails_admin_content/develop/manages/show.html.slim +24 -24
  33. data/lib/assets/javascripts/jquery/jquery.color.js +123 -0
  34. data/lib/assets/javascripts/jquery/jquery.cookie.js +96 -0
  35. data/lib/rails_admin_content/client.rb +4 -0
  36. data/lib/rails_admin_content/mysql/adapters/client.rb +2 -0
  37. data/lib/rails_admin_content/version.rb +1 -1
  38. metadata +64 -9
  39. data/app/views/rails_admin_content/develop/manages/_menv.html.slim +0 -8
  40. data/app/views/rails_admin_content/develop/manages/_navbar.html.slim +0 -27
  41. data/lib/assets/codemirror/charisma-app.css +0 -501
  42. data/lib/assets/codemirror/matchbrackets.js +0 -82
  43. data/lib/assets/codemirror/solarized.css +0 -207
  44. data/lib/assets/codemirror/twilight.css +0 -26
  45. data/lib/assets/javascripts/bootstrap/bootstrap-alert.js +0 -100
@@ -0,0 +1,24 @@
1
+ .forbidden
2
+ display: block
3
+ background: #FFF
4
+ height: 100%
5
+ width: 100%
6
+ .backtoblog
7
+ display: inline-block
8
+ *display: inline
9
+ zoom: 1
10
+ padding: 10px 12px
11
+ &:hover
12
+ text-decoration: underline
13
+ h1
14
+ display: block
15
+ font-size: 3em
16
+ text-shadow: white 0 1px 0
17
+ text-align: center
18
+ position: absolute
19
+ left: 50%
20
+ top: 40%
21
+ margin-left: -300px
22
+ margin-top: -50px
23
+ width: 600px
24
+ height: 115px
@@ -0,0 +1,153 @@
1
+ .login_warp
2
+ position: relative
3
+ height: 100%
4
+ min-height: 600px
5
+ z-index: 555
6
+ background: #fff
7
+ .login_center
8
+ position: absolute
9
+ width: 960px
10
+ height: 440px
11
+ top: 50%
12
+ left: 50%
13
+ margin: -280px auto 0 -480px
14
+ display: block
15
+ .logo
16
+ height: 75px
17
+ display: block
18
+ position: relative
19
+ a
20
+ font-size: 32px
21
+ position: absolute
22
+ top: 30px
23
+ left: 60px
24
+ color: #333
25
+ &:hover
26
+ color: #666
27
+ .lg_main
28
+ font-size: 0px
29
+ position: relative
30
+ vertical-align: top
31
+ .left_product
32
+ width: 560px
33
+ display: inline-block
34
+ *display: inline
35
+ zoom: 1
36
+ // background: #CCC
37
+ height: 320px
38
+ position: relative
39
+ .title
40
+ font-size: 18px
41
+ left: 60px
42
+ top: 0px
43
+ position: absolute
44
+ display: none
45
+ ul
46
+ width: 440px
47
+ height: 220px
48
+ overflow: hidden
49
+ left: 60px
50
+ position: absolute
51
+ top: 35px
52
+ li
53
+ float: left
54
+ display: block
55
+ width: 110px
56
+ height: 110px
57
+ //background: #{$color11}
58
+ &:hover
59
+ opacity: 0.7
60
+ .loginBox
61
+ width: 400px
62
+ display: inline-block
63
+ *display: inline
64
+ zoom: 1
65
+ height: 320px
66
+ vertical-align: top
67
+ position: relative
68
+ ul
69
+ list-style: none
70
+ margin-top: 36px
71
+ margin-bottom: 25px
72
+ li
73
+ list-style: none
74
+ display: block
75
+ margin-bottom: 10px
76
+ label
77
+ display: block
78
+ font-size: 12px
79
+ color: #000
80
+ padding-bottom: 5px
81
+ input.text
82
+ display: block
83
+ padding: 5px 10px
84
+ font-size: 14px
85
+ width: 250px
86
+ outline: none
87
+ border: 1px solid #999
88
+ &:focus
89
+ border: 1px solid #333
90
+ outline: none
91
+ .send
92
+ display: block
93
+ height: 60px
94
+ position: relative
95
+ .loginBtn
96
+ display: block
97
+ border: 0px
98
+ //background: #{$color11}
99
+ color: #fff
100
+ width: 98px
101
+ height: 30px
102
+ font-size: 14px
103
+ text-align: center
104
+ padding-top: 0
105
+ &:hover
106
+ opacity: 0.9
107
+ &:focus
108
+ opacity: 0.9
109
+ .RememberMe
110
+ display: block
111
+ position: absolute
112
+ top: 8px
113
+ left: 110px
114
+ cursor: pointer
115
+ span
116
+ font-size: 12px
117
+ padding-left: 10px
118
+ cursor: pointer
119
+ .moreLink
120
+ display: block
121
+ position: absolute
122
+ top: 240px
123
+ left: 10px
124
+ a
125
+ font-size: 12px
126
+ margin-right: 40px
127
+ &:hover
128
+ text-decoration: underline
129
+ .lg_footer
130
+ display: block
131
+ position: absolute
132
+ width: 100%
133
+ bottom: 67px
134
+ text-align: center
135
+ ul
136
+ list-style: none
137
+ text-align: center
138
+ font-size: 0px
139
+ li
140
+ list-style: none
141
+ display: inline-block
142
+ *display: inline
143
+ zoom: 1
144
+ a
145
+ font-size: 14px
146
+ padding: 10px 30px
147
+ display: block
148
+ &:hover
149
+ text-decoration: underline
150
+ p
151
+ display: block
152
+ text-align: center
153
+ color: #666
@@ -0,0 +1,6 @@
1
+ $experimental-support-for-opera: false;
2
+ $experimental-support-for-svg: true;
3
+ // @import 'compass';
4
+ @import './application/common';
5
+ @import './application/login';
6
+ @import './application/forbidden';
@@ -11,9 +11,7 @@
11
11
  *= require_self
12
12
  *= require develop/manages
13
13
  *= require dyndatetime/calendar-system
14
- *= require bootstrap/bootstrap-app
15
- *= require solarized
16
14
  *= require codemirror
17
- *= require site
18
- */
19
-
15
+ *= require midnight
16
+ *= require ./develop/application
17
+ */
@@ -1,135 +1,3 @@
1
- html {overflow-y:scroll;}
2
-
3
- body { font-family: Verdana, sans-serif; font-size: 12px; color:#484848; margin: 0; margin-bottom: 30px; padding: 0; min-width: 900px; }
4
- a{text-decoration:none;}
5
- h1, h2, h3, h4 {font-family: "Trebuchet MS", Verdana, sans-serif;padding: 2px 10px 1px 0px;margin: 0 0 10px 0;}
6
- #content h1, h2, h3, h4 {color: #555;}
7
- h2, .wiki h1 {font-size: 20px;}
8
- h3, .wiki h2 {font-size: 16px;}
9
- h4, .wiki h3 {font-size: 13px;}
10
- h4 {border-bottom: 1px dotted #bbb;}
11
-
12
- /***** Layout *****/
13
-
14
- body {
15
- background-color: #FFFFFF;
16
- color: #555555;
17
- font-family: "Ubuntu",Helvetica,Arial,sans-serif;
18
- font-size: 13px;
19
- line-height: 18px;
20
- text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.2);
21
- }
22
-
23
- .container-fluid .content{
24
- background-color: #FFF;
25
- margin: 10px 0;
26
- padding: 0;
27
- }
28
-
29
-
30
-
31
-
32
- #account {float:right;}
33
-
34
- #header {min-height:5.3em;margin:0;background-color:#628DB6;color:#f8f8f8; padding: 4px 8px 20px 6px; position:relative;}
35
- #header a {color:#f8f8f8;}
36
- #header h1 a.ancestor { font-size: 80%; }
37
-
38
- /*#main .content { width: 75%; background-color: #fff; margin: 0px; border-right: 1px solid #ddd; padding: 6px 10px 10px 10px; z-index: 10; float: right; }*/
39
- /** html #content{ width: 75%; padding-left: 0; margin-top: 0px; padding: 6px 10px 10px 10px;}*/
40
-
41
- /*html>body #content { min-height: 600px; }*/
42
- #main{display: block; position: relative; }
43
- /*#wrapper3 #main .content{
44
- float: right;
45
- width: 79%;
46
- padding: 0px;
47
- margin: 10px 0;
48
- }*/
49
- #sidebar{ float: left; padding: 0; margin: 0; width: 19%;}
50
- * html body .content { height: 600px; min-height: 600px; } /* IE */
51
-
52
- #main.nosidebar #sidebar{ display: none; }
53
- #main.nosidebar .content{ width: auto; border-right: 0; }
54
-
55
- #footer {clear: both; border-top: 1px solid #bbb; font-size: 0.9em; color: #aaa; padding: 5px; text-align:center; background:#fff;}
56
-
57
-
58
- /***** Tables *****/
59
- table {font-size: 11px}
60
- table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; }
61
- table.list th { background-color:#EEEEEE; padding: 4px; white-space:nowrap; }
62
- table.list td { vertical-align: top; padding-right:10px; text-align: center; }
63
- table.list td.id { width: 2%; text-align: center;}
64
- table.list td.checkbox { width: 15px; padding: 2px 0 0 0; }
65
- table.list td.checkbox input {padding:0px;}
66
- table.list td.buttons { width: 15%; white-space:nowrap; text-align: right; }
67
- table.list td.buttons a { padding-right: 0.6em; }
68
- table.list caption { text-align: left; padding: 0.5em 0.5em 0.5em 0; }
69
-
70
- tr.version.closed, tr.version.closed a { color: #999; }
71
- tr.version td.name { padding-left: 20px; }
72
- tr.version.shared td.name { background: url(file_icon/link.png) no-repeat 0% 70%; }
73
- tr.version td.date, tr.version td.status, tr.version td.sharing { text-align: center; white-space:nowrap; }
74
-
75
- tr.user td { width:13%; }
76
- tr.user td.email { width:18%; }
77
- tr.user td { white-space: nowrap; }
78
- tr.user.locked, tr.user.registered { color: #aaa; }
79
- tr.user.locked a, tr.user.registered a { color: #aaa; }
80
-
81
- table.permissions td.role {color:#999;font-size:90%;font-weight:normal !important;text-align:center;vertical-align:bottom;}
82
-
83
- tr.wiki-page-version td.updated_on, tr.wiki-page-version td.author {text-align:center;}
84
-
85
- tr.time-entry { text-align: center; white-space: nowrap; }
86
- tr.time-entry td.issue, tr.time-entry td.comments { text-align: left; white-space: normal; }
87
- td.hours { text-align: right; font-weight: bold; padding-right: 0.5em; }
88
- td.hours .hours-dec { font-size: 0.9em; }
89
-
90
-
91
- table.list tbody tr.group td { padding: 0.8em 0 0.5em 0.3em; font-weight: bold; border-bottom: 1px solid #ccc; }
92
- table.list tbody tr.group span.count {position:relative; top:-1px; color:#fff; font-size:10px; background:#9DB9D5; padding:0px 6px 1px 6px; border-radius:3px; margin-left:4px;}
93
- tr.group a.toggle-all { color: #aaa; font-size: 80%; font-weight: normal; display:none;}
94
- tr.group:hover a.toggle-all { display:inline;}
95
- a.toggle-all:hover {text-decoration:none;}
96
-
97
- table.list tbody tr:hover { background-color:#ffffdd; }
98
- table.list tbody tr.group:hover { background-color:inherit; }
99
- table td {padding:2px;}
100
- table p {margin:0;}
101
- .odd {background-color:#f6f7f8;}
102
- .even {background-color: #fff;}
103
-
104
-
105
-
106
- #sidebar h3{
107
- padding: 20px;
108
- }
109
-
110
- #sidebar a{
111
- padding: 5px 0 5px 20px;
112
- line-height: 24px;
113
-
114
- }
115
-
116
- th {
117
- font-weight: bold;
118
- color: #000;
119
- background: #f3f3f3;
120
- background-image: url(./themes/svg_gradient.php?from=ffffff&to=cccccc);
121
- background-size: 100% 100%;
122
- background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#cccccc));
123
- background: -webkit-linear-gradient(top, #ffffff, #cccccc);
124
- background: -moz-linear-gradient(top, #ffffff, #cccccc);
125
- background: -ms-linear-gradient(top, #ffffff, #cccccc);
126
- background: -o-linear-gradient(top, #ffffff, #cccccc);}
127
-
128
- form {
129
- padding: 0;
130
- margin: 0;
131
- display: inline;
132
- }
133
1
 
134
2
  /* The rest of this file contains styles related to the mechanics of
135
3
  the editor. You probably shouldn't touch them. */
@@ -281,52 +149,7 @@ form {
281
149
  .CodeMirror div.CodeMirror-cursor {
282
150
  visibility: hidden;
283
151
  }
284
- }
285
-
286
- span.cm-keyword, span.cm-statement-verb {
287
- color: #909;
288
- }
289
- span.cm-variable {
290
- color: black;
291
- }
292
- span.cm-comment {
293
- color: #808000;
294
- }
295
- span.cm-mysql-string {
296
- color: #008000;
297
- }
298
- span.cm-operator {
299
- color: fuchsia;
300
- }
301
- span.cm-mysql-word {
302
- color: black;
303
- }
304
- span.cm-builtin {
305
- color: #f00;
306
- }
307
- span.cm-variable-2 {
308
- color: #f90;
309
- }
310
- span.cm-variable-3 {
311
- color: #00f;
312
- }
313
- span.cm-separator {
314
- color: fuchsia;
315
- }
316
- span.cm-number {
317
- color: teal;
318
- }
319
-
320
- /* nav */
321
- div.nav{
322
- background-image: linear-gradient(to bottom, #ffffff, #f2f2f2) ;
323
- padding: 5px;
324
- margin: 10px 0px 10px 0px;
325
- font-size: 18px;
326
- }
327
- div.nav a{
328
- margin-left: 3px;
329
- }
152
+ }
330
153
 
331
154
  .content h5{
332
155
  padding: 3px;
@@ -340,85 +163,6 @@ span.author-name{
340
163
  background-color: #d0d0d0;
341
164
  }
342
165
 
343
- #main-menu li a.selected {
344
- background: none repeat scroll 0 0 #FFFFFF;
345
- color: #555555;
346
- }
347
-
348
- #header {
349
- background-color: #507AAA;
350
- color: #F8F8F8;
351
- height: 6.2em;
352
- margin: 0;
353
- padding: 4px 8px 0 6px;
354
- position: relative;
355
- }
356
- #header h1 {
357
- margin-left: 0;
358
- margin-top: 0.3em;
359
- }
360
-
361
- #main-menu {
362
- bottom: 8px;
363
- left: 311px;
364
- position: absolute;
365
- }
366
-
367
- #wrapper {
368
- background: none repeat scroll 0 0 #F1EFE2;
369
- }
370
- #wrapper3 {
371
- background: none repeat scroll 0 0 #FFFFFF;
372
- box-shadow: 1px 1px 5px #999999;
373
- margin: 0 10px;
374
- }
375
-
376
- #main-menu ul {
377
- margin: 0;
378
- padding: 0;
379
- }
380
-
381
-
382
- #main-menu li {
383
- float: left;
384
- list-style-type: none;
385
- margin: 0 2px 0 0;
386
- padding: 0;
387
- white-space: nowrap;
388
- }
389
- #main-menu li a {
390
- /* background: none repeat scroll 0 0 #507AAA; */
391
- font-weight: bold;
392
- }
393
- #main-menu li a:hover {
394
- background: none repeat scroll 0 0 #759FCF;
395
- }
396
- #main-menu li a.selected {
397
- background: none repeat scroll 0 0 #FFFFFF;
398
- color: #555555;
399
- }
400
-
401
-
402
- #edit_tools{
403
- width: 100%;
404
- bottom: 0;
405
- position: fixed;
406
- border-spacing: 0;
407
- background-color: #DDD;
408
- text-align: center;
409
- border: 1px solid #d4d4d4;
410
- }
411
-
412
-
413
- #edit_tools span{
414
- width: 300px;
415
- margin-left: 100px;
416
- }
417
-
418
- .content ul{
419
- margin: 10px 10px;
420
- }
421
-
422
166
 
423
167
  .pagination {
424
168
  display: inline;
@@ -426,71 +170,6 @@ span.author-name{
426
170
  margin-left: 20px;
427
171
  vertical-align: top;
428
172
  }
429
-
430
- .table tr.active{
431
- background-color: #F0F0F0;
432
- font-weight: bold;
433
- }
434
-
435
- #edit_tools span label{
436
- float: right;
437
- display: inline;
438
- margin-right: 200px;
439
- vertical-align: top;
440
- margin-top: 10px;
441
- }
442
-
443
- #edit_tools label #select_num{
444
- width: 0px;
445
- margin: 0px;
446
- font-weight: bold;
447
- }
448
-
449
- .content .search{
450
- padding: 12px;
451
- margin: 2px;
452
- }
453
-
454
- .content .navbar ul li{
455
- display: inline;
456
- padding: 5px;
457
- width: 70px;
458
- float: left;
459
- }
460
-
461
- .content .navbar ul li.active{
462
- display: block;
463
- border: 1px solid #696;padding: 5px 0;text-align: center;
464
- -webkit-border-radius: 8px;
465
- -moz-border-radius: 8px;
466
- border-radius: 8px;
467
- -webkit-box-shadow: #666 0px 0px 10px;
468
- -moz-box-shadow: #666 0px 0px 10px;
469
- box-shadow: #666 0px 0px 10px;background: #EEFF99;behavior: url(/PIE.htc);
470
- }
471
-
472
-
473
- .content .details{
474
- overflow: auto;
475
- }
476
-
477
- .table tr{
478
- background-color: #FFF;
479
- }
480
-
481
- .navbar a.btn-icon img{
482
- width: 54px;
483
- height: 50px;
484
- overflow: hidden;
485
- }
486
-
487
- .navbar li .section{
488
- margin: 2px;
489
- }
490
- .navbar li .section a{
491
- padding: 10px;
492
- background-color: #759fcf;
493
- }
494
-
173
+
495
174
 
496
175