cortex-reaver 0.1.0 → 0.2.0

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.
Files changed (141) hide show
  1. data/README +1 -1
  2. data/bin/cortex_reaver +3 -4
  3. data/lib/cortex_reaver.rb +270 -110
  4. data/lib/cortex_reaver/cache.rb +23 -0
  5. data/lib/cortex_reaver/config.rb +178 -74
  6. data/lib/cortex_reaver/controller/admin.rb +64 -4
  7. data/lib/cortex_reaver/controller/comment.rb +4 -4
  8. data/lib/cortex_reaver/controller/controller.rb +3 -3
  9. data/lib/cortex_reaver/controller/journal.rb +4 -2
  10. data/lib/cortex_reaver/controller/main.rb +117 -26
  11. data/lib/cortex_reaver/controller/page.rb +7 -0
  12. data/lib/cortex_reaver/controller/photograph.rb +12 -10
  13. data/lib/cortex_reaver/controller/tag.rb +1 -1
  14. data/lib/cortex_reaver/controller/user.rb +7 -2
  15. data/lib/cortex_reaver/helper/attachments.rb +2 -2
  16. data/lib/cortex_reaver/helper/crud.rb +7 -7
  17. data/lib/cortex_reaver/helper/feeds.rb +56 -38
  18. data/lib/cortex_reaver/helper/form.rb +12 -16
  19. data/lib/cortex_reaver/helper/navigation.rb +35 -16
  20. data/lib/cortex_reaver/helper/photographs.rb +2 -2
  21. data/lib/cortex_reaver/helper/sidebar.rb +44 -0
  22. data/lib/cortex_reaver/helper/tags.rb +32 -9
  23. data/lib/cortex_reaver/helper/workflow.rb +2 -14
  24. data/lib/cortex_reaver/layout/blank.rhtml +27 -31
  25. data/lib/cortex_reaver/layout/text.rhtml +54 -67
  26. data/lib/cortex_reaver/migrations/014_convert_projects_to_pages.rb +79 -0
  27. data/lib/cortex_reaver/model/comment.rb +7 -8
  28. data/lib/cortex_reaver/model/page.rb +5 -3
  29. data/lib/cortex_reaver/model/photograph.rb +57 -13
  30. data/lib/cortex_reaver/model/tag.rb +1 -4
  31. data/lib/cortex_reaver/model/user.rb +6 -3
  32. data/lib/cortex_reaver/plugin.rb +1 -1
  33. data/lib/cortex_reaver/plugins/twitter.rb +185 -0
  34. data/lib/cortex_reaver/public/css/actions.css +31 -0
  35. data/lib/cortex_reaver/public/css/admin.css +50 -27
  36. data/lib/cortex_reaver/public/css/attachments.css +11 -0
  37. data/lib/cortex_reaver/public/css/autotags.css +38 -0
  38. data/lib/cortex_reaver/public/css/code.css +10 -2
  39. data/lib/cortex_reaver/public/css/colophon.css +10 -0
  40. data/lib/cortex_reaver/public/css/commments.css +7 -0
  41. data/lib/cortex_reaver/public/css/custom.css +1 -0
  42. data/lib/cortex_reaver/public/css/flash.css +17 -0
  43. data/lib/cortex_reaver/public/css/fonts.css +22 -0
  44. data/lib/cortex_reaver/public/css/form.css +15 -3
  45. data/lib/cortex_reaver/public/css/generics.css +39 -0
  46. data/lib/cortex_reaver/public/css/icons.css +4 -0
  47. data/lib/cortex_reaver/public/css/journals.css +3 -0
  48. data/lib/cortex_reaver/public/css/main.css +30 -312
  49. data/lib/cortex_reaver/public/css/pagination.css +50 -0
  50. data/lib/cortex_reaver/public/css/photo-show.css +87 -0
  51. data/lib/cortex_reaver/public/css/photo.css +28 -97
  52. data/lib/cortex_reaver/public/css/progress.css +35 -0
  53. data/lib/cortex_reaver/public/css/sidebar.css +83 -0
  54. data/lib/cortex_reaver/public/css/table-of-contents.css +26 -0
  55. data/lib/cortex_reaver/public/css/table.css +3 -0
  56. data/lib/cortex_reaver/public/css/tags.css +29 -0
  57. data/lib/cortex_reaver/public/css/text.css +19 -1
  58. data/lib/cortex_reaver/public/css/top_actions.css +50 -0
  59. data/lib/cortex_reaver/public/css/users.css +3 -0
  60. data/lib/cortex_reaver/public/images/admin/icons.png +0 -0
  61. data/lib/cortex_reaver/public/images/admin/icons.xcf +0 -0
  62. data/lib/cortex_reaver/public/images/background_tile.png +0 -0
  63. data/lib/cortex_reaver/public/images/edit_34.png +0 -0
  64. data/lib/cortex_reaver/public/images/edit_34_prelight.png +0 -0
  65. data/lib/cortex_reaver/public/images/elided.png +0 -0
  66. data/lib/cortex_reaver/public/images/grid_34.png +0 -0
  67. data/lib/cortex_reaver/public/images/grid_34_prelight.png +0 -0
  68. data/lib/cortex_reaver/public/images/next_11.png +0 -0
  69. data/lib/cortex_reaver/public/images/next_34.png +0 -0
  70. data/lib/cortex_reaver/public/images/next_34_prelight.png +0 -0
  71. data/lib/cortex_reaver/public/images/prev_11.png +0 -0
  72. data/lib/cortex_reaver/public/images/prev_34.png +0 -0
  73. data/lib/cortex_reaver/public/images/prev_34_prelight.png +0 -0
  74. data/lib/cortex_reaver/public/js/admin.js +15 -22
  75. data/lib/cortex_reaver/public/js/autotags.js +120 -0
  76. data/lib/cortex_reaver/public/js/jquery.autocomplete.js +135 -176
  77. data/lib/cortex_reaver/public/js/jquery.color.js +124 -0
  78. data/lib/cortex_reaver/public/js/jquery.corners.min.js +7 -0
  79. data/lib/cortex_reaver/public/js/jquery.hotkeys-0.7.9.js +244 -0
  80. data/lib/cortex_reaver/public/js/jquery.js +4361 -4
  81. data/lib/cortex_reaver/public/js/jquery.periodicalupdater.js +98 -0
  82. data/lib/cortex_reaver/public/js/photo.js +3 -32
  83. data/lib/cortex_reaver/public/robots.txt +3 -0
  84. data/lib/cortex_reaver/snippets/ramaze/cache/memcached.rb +13 -10
  85. data/lib/cortex_reaver/snippets/range.rb +9 -0
  86. data/lib/cortex_reaver/support/attachments.rb +12 -0
  87. data/lib/cortex_reaver/support/comments.rb +1 -3
  88. data/lib/cortex_reaver/support/renderer.rb +20 -17
  89. data/lib/cortex_reaver/support/sequenceable.rb +6 -6
  90. data/lib/cortex_reaver/support/tags.rb +15 -7
  91. data/lib/cortex_reaver/version.rb +1 -1
  92. data/lib/cortex_reaver/view/admin/configuration.rhtml +7 -0
  93. data/lib/cortex_reaver/view/admin/index.rhtml +3 -0
  94. data/lib/cortex_reaver/view/admin/regenerate_photo_sizes.rhtml +16 -0
  95. data/lib/cortex_reaver/view/adminbox.rhtml +34 -44
  96. data/lib/cortex_reaver/view/comments/comment.rhtml +1 -1
  97. data/lib/cortex_reaver/view/comments/form.rhtml +1 -2
  98. data/lib/cortex_reaver/view/comments/post_form.rhtml +2 -10
  99. data/lib/cortex_reaver/view/head.rhtml +11 -0
  100. data/lib/cortex_reaver/view/journals/journal.rhtml +3 -3
  101. data/lib/cortex_reaver/view/journals/show.rhtml +0 -4
  102. data/lib/cortex_reaver/view/js.rhtml +1 -0
  103. data/lib/cortex_reaver/view/pages/list.rhtml +3 -23
  104. data/lib/cortex_reaver/view/pages/row.rhtml +13 -0
  105. data/lib/cortex_reaver/view/photographs/grid.rhtml +30 -36
  106. data/lib/cortex_reaver/view/photographs/show.rhtml +42 -108
  107. data/lib/cortex_reaver/view/sidebar/explore_photos.rhtml +7 -0
  108. data/lib/cortex_reaver/view/sidebar/photographs.rhtml +15 -0
  109. data/lib/cortex_reaver/view/sidebar/sections.rhtml +4 -0
  110. data/lib/cortex_reaver/view/sidebar/twitter.rhtml +12 -0
  111. data/lib/cortex_reaver/view/tags/show.rhtml +0 -10
  112. data/lib/cortex_reaver/view/tracker.rhtml +0 -0
  113. data/lib/cortex_reaver/view/users/list.rhtml +1 -7
  114. data/lib/cortex_reaver/view/users/login.rhtml +1 -1
  115. metadata +103 -43
  116. data/lib/cortex_reaver/controller/project.rb +0 -53
  117. data/lib/cortex_reaver/helper/template.rb +0 -37
  118. data/lib/cortex_reaver/model/project.rb +0 -57
  119. data/lib/cortex_reaver/public/css/ramaze_error.css +0 -90
  120. data/lib/cortex_reaver/public/images/atom-xml-icon.png +0 -0
  121. data/lib/cortex_reaver/public/images/body.png +0 -0
  122. data/lib/cortex_reaver/public/images/border_bottom.png +0 -0
  123. data/lib/cortex_reaver/public/images/border_bottom_left.png +0 -0
  124. data/lib/cortex_reaver/public/images/border_bottom_right.png +0 -0
  125. data/lib/cortex_reaver/public/images/border_left.png +0 -0
  126. data/lib/cortex_reaver/public/images/border_right.png +0 -0
  127. data/lib/cortex_reaver/public/images/border_top.png +0 -0
  128. data/lib/cortex_reaver/public/images/border_top_left.png +0 -0
  129. data/lib/cortex_reaver/public/images/border_top_right.png +0 -0
  130. data/lib/cortex_reaver/public/images/header.png +0 -0
  131. data/lib/cortex_reaver/public/images/header.xcf +0 -0
  132. data/lib/cortex_reaver/public/images/indicator.gif +0 -0
  133. data/lib/cortex_reaver/public/images/rss-xml-icon.png +0 -0
  134. data/lib/cortex_reaver/public/images/sections.png +0 -0
  135. data/lib/cortex_reaver/public/images/sections_highlight.png +0 -0
  136. data/lib/cortex_reaver/public/js/jquery.autocompletefb.js +0 -125
  137. data/lib/cortex_reaver/view/photographs/sidebar.rhtml +0 -7
  138. data/lib/cortex_reaver/view/projects/form.rhtml +0 -14
  139. data/lib/cortex_reaver/view/projects/list.rhtml +0 -31
  140. data/lib/cortex_reaver/view/projects/show.rhtml +0 -42
  141. data/lib/proto/cortex_reaver.yaml +0 -47
@@ -0,0 +1,50 @@
1
+ .pagination.actions {
2
+ margin: 0;
3
+ padding: 0;
4
+ clear: both;
5
+ }
6
+
7
+ .pagination.actions li {
8
+ padding: 0;
9
+ width: 38px;
10
+ margin: 1px;
11
+ background: #444;
12
+ display: inline-block;
13
+ color: white;
14
+ }
15
+
16
+ .pagination.actions li.elided {
17
+ background: transparent url('/images/elided.png') center;
18
+ background-repeat: repeat-y;
19
+ }
20
+
21
+ .pagination.actions li > * {
22
+ display: block;
23
+ text-align: center;
24
+ margin: 0;
25
+ padding: 5px;
26
+ width: 28px;
27
+ height: 20px;
28
+ line-height: 18px;
29
+ text-decoration: none !important;
30
+ color: white !important;
31
+ overflow: hidden;
32
+ }
33
+
34
+ .pagination.actions li > a.previous, .pagination.actions li > a.next {
35
+ line-height: 60px;
36
+ }
37
+ .pagination.actions li > a.previous {
38
+ background: url('/images/prev_11.png') no-repeat scroll center center;
39
+ }
40
+ .pagination.actions li > a.next {
41
+ background: url('/images/next_11.png') no-repeat scroll center center;
42
+ }
43
+
44
+ .pagination.actions li.placeholder {
45
+ background-color: transparent;
46
+ }
47
+
48
+ .pagination.actions li > span {
49
+ cursor: default;
50
+ }
@@ -0,0 +1,87 @@
1
+ #top.photograph {
2
+ width: 600px;
3
+ height: 60px;
4
+ position: static;
5
+ margin-left: auto;
6
+ margin-right: auto;
7
+ }
8
+
9
+ .photograph.full {
10
+ text-align: center;
11
+ margin: 0 auto;
12
+ color: #fff;
13
+ }
14
+
15
+ .frame {
16
+ text-align: left;
17
+ position: static;
18
+ top: 0;
19
+ color: #999;
20
+ margin: 0 auto 20px auto;
21
+ padding: 10px;
22
+ background: #000;
23
+ display: block;
24
+ }
25
+
26
+ .frame a {
27
+ color: #fff;
28
+ }
29
+
30
+ .photograph.frame {
31
+ display: inline-block;
32
+ }
33
+
34
+ .photograph.frame .byline .tags {
35
+ float: left;
36
+ color: #999;
37
+ }
38
+ .photograph.frame .byline .tags a {
39
+ color: #999;
40
+ }
41
+ .photograph.frame h2 {
42
+ display: block;
43
+ text-align: center;
44
+ font-size: 100%;
45
+ }
46
+
47
+ .photograph.frame .byline .description {
48
+ float: right;
49
+ }
50
+
51
+ .frame h2 a {
52
+ color: #ccc;
53
+ }
54
+
55
+ .comments.frame {
56
+ width: 500px;
57
+ background: #000;
58
+ color: #ccc;
59
+ }
60
+
61
+ .frame .comment {
62
+ background: #141414;
63
+ padding: 6px;
64
+ }
65
+
66
+ .frame .comment .footer {
67
+ background: transparent;
68
+ color: #fff;
69
+ border-bottom: none;
70
+ }
71
+ .frame .comment .footer .actions li {
72
+ color: #aaa;
73
+ }
74
+ .frame .comment .footer .actions li a {
75
+ color: #aaa;
76
+ }
77
+
78
+ .frame textarea, .frame input {
79
+ padding: 2px;
80
+ border: 1px solid #555;
81
+ background: #111;
82
+ color: #fff;
83
+ }
84
+ .frame input[type=submit]:hover {
85
+ background: #333;
86
+ color: #fff;
87
+ }
@@ -1,113 +1,44 @@
1
- /* Infobar */
2
- .photo #bar {
3
- background-image: url('/images/dark_trans.png');
4
- color: #fff;
5
- padding: 3px 0px;
6
- font-size: 80%;
1
+ /* Adjust the sidebar colors some */
2
+ body.photographs .box .actions li {
3
+ background: #444;
7
4
  }
8
-
9
- .photo #bar a {
5
+ body.photographs .box .actions li.current {
6
+ background: #666;
7
+ }
8
+ body.photographs .box .actions li.current a {
10
9
  color: #fff;
11
10
  }
12
11
 
13
- .photo h2 {
14
- margin-top: 0.25em;
15
- font-size: 130%;
16
- font-weight: normal;
17
- border-bottom: none;
12
+ /* Dark main section */
13
+ body.photographs #main-container {
14
+ background: transparent;
18
15
  }
19
-
20
- .photo .description {
21
- color: #999;
16
+ body.photographs #main {
17
+ background: #000;
22
18
  }
23
19
 
24
-
25
20
  /* Grid */
26
- table.grid {
27
- vertical-align: middle;
28
- }
29
-
30
- .grid.photographs {
31
- background-color: #eaeaea;
32
- margin: 0.75em 0em;
33
- width: 100%;
34
- border: 1px solid #bbb;
35
- }
36
-
37
- /* Frames */
38
- table.frame td.content {
39
- background: #fff;
40
- }
41
-
42
- .frame {
43
- margin-left: auto;
44
- margin-right: auto;
45
- }
46
-
47
- .photo.frame {
48
- text-align: center;
49
- vertical-align: top;
50
- margin: 10px auto 0 auto;
51
- }
52
-
53
- .thumbnail.frame a {
54
- margin: 0;
21
+ .photographs.grid {
22
+ width: 764px;
55
23
  padding: 0;
24
+ margin: 2px -2px 8px -2px;
56
25
  }
57
26
 
58
- .text.frame {
59
- margin: 10px auto 0 auto;
60
- width: 600px;
61
- }
62
-
63
- table.text.frame td.content {
64
- padding: 1em;
65
- }
66
-
67
- .border_top_left {
68
- width: 15px;
69
- height: 15px;
70
- background-image: url("/images/border_top_left.png");
71
- }
72
-
73
- .border_top {
74
- width: auto;
75
- height: 15px;
76
- background-image: url("/images/border_top.png");
77
- }
78
-
79
- .border_top_right {
80
- width: 17px;
81
- height: 15px;
82
- background-image: url("/images/border_top_right.png");
27
+ .photographs.grid .thumb {
28
+ display: block;
29
+ float: left;
30
+ margin: 4px;
83
31
  }
84
32
 
85
- .border_left {
86
- width: 15px;
87
- height: auto;
88
- background-image: url("/images/border_left.png");
89
- }
90
-
91
- .border_right {
92
- width: 17px;
93
- height: auto;
94
- background-image: url("/images/border_right.png");
95
- }
96
-
97
- .border_bottom_left {
98
- width: 15px;
99
- height: 17px;
100
- background-image: url("/images/border_bottom_left.png");
101
- }
102
-
103
- .border_bottom {
104
- width: auto;
105
- height: 17px;
106
- background-image: url("/images/border_bottom.png");
33
+ .photographs.grid .thumb > a {
34
+ width: 183px;
35
+ height: 183px;
36
+ background-color: #111;
37
+ display: table-cell;
38
+ vertical-align: middle;
107
39
  }
108
40
 
109
- .border_bottom_right {
110
- width: 17px;
111
- height: 17px;
112
- background-image: url("/images/border_bottom_right.png");
41
+ .photographs.grid .thumb > a > img {
42
+ display: block;
43
+ margin: auto;
113
44
  }
@@ -0,0 +1,35 @@
1
+ .progress {
2
+ width: 99%;
3
+ padding: 1px;
4
+ border: 1px solid #ddd;
5
+ text-align: right;
6
+ position: static;
7
+ font-size: 10px;
8
+ color: #ccc;
9
+ height: 16px;
10
+ padding-right: 4px;
11
+ }
12
+
13
+ .percent-bar {
14
+ font-size: 10px;
15
+ text-align: right;
16
+ background-color: #555;
17
+ color: #fff;
18
+ padding: 2px 4px 2px 0;
19
+ height: 12px;
20
+ }
21
+
22
+ .progress .percent_bar {
23
+ display: inline-block;
24
+ position: absolute;
25
+ }
26
+
27
+ .text-entry .actions li, .tag .actions li {
28
+ display: inline;
29
+ background: transparent;
30
+ color: #000;
31
+ }
32
+ .text-entry .actions li a, .tag .actions li a {
33
+ display: inline;
34
+ }
35
+
@@ -0,0 +1,83 @@
1
+ #boxes {
2
+ text-align: right;
3
+ }
4
+
5
+ .box a {
6
+ color: #fff;
7
+ }
8
+
9
+ .box {
10
+ margin-bottom: 10px;
11
+ }
12
+
13
+ .box > ul {
14
+ list-style: none;
15
+ margin: 0px;
16
+ padding: 0px;
17
+ }
18
+
19
+ .box > ul > li {
20
+ margin: 0;
21
+ padding: 0;
22
+ }
23
+
24
+ .box .top {
25
+ color: #fff;
26
+ padding: 6px 12px 6px 6px;
27
+ font-size: 130%;
28
+ }
29
+
30
+ .box .top a {
31
+ font-weight: bolder;
32
+ }
33
+
34
+ .box .actions li {
35
+ background: #666;
36
+ border-right: 6px solid #3D3D3D;
37
+ padding: 6px;
38
+ margin-bottom: 3px;
39
+ font-weight: bolder;
40
+ font-size: 115%;
41
+ margin-left: -20px;
42
+ }
43
+
44
+ .box .actions li a {
45
+ color: #fff;
46
+ }
47
+ .box .actions li a:hover {
48
+ text-decoration: none;
49
+ }
50
+
51
+ .box .actions li:hover {
52
+ background-color: #888;
53
+ border-right-color: #1A401A;
54
+ }
55
+ .box .actions li.current {
56
+ background: #fff;
57
+ border-right-color: #168715;
58
+ }
59
+ .box .actions li.current a {
60
+ color: #000;
61
+ }
62
+
63
+ .box .text {
64
+ text-align: left;
65
+ background: #fff;
66
+ font-size: 80%;
67
+ padding: 6px;
68
+ }
69
+ .box .text a {
70
+ color: blue;
71
+ }
72
+ .box .text .date {
73
+ font-size: 80%;
74
+ text-align: right;
75
+ }
76
+
77
+ .box .photo {
78
+ background: #aaa;
79
+ border: 2px solid #fff;
80
+ padding: 0;
81
+ margin: 0;
82
+ margin-bottom: 20px;
83
+ }
@@ -0,0 +1,26 @@
1
+ .table-of-contents {
2
+ margin: 2em auto 2em auto;
3
+ border: 1px solid #ccc;
4
+ padding: 0 0.6em 0.6em 0.6em;
5
+ font-size: 90%;
6
+ }
7
+
8
+ .table-of-contents td {
9
+ margin: 0;
10
+ padding: 0;
11
+ }
12
+
13
+ .table-of-contents h2 {
14
+ position: relative;
15
+ top: -0.6em;
16
+ left: 2em;
17
+ padding: 0 0.25em;
18
+ background-color: #fff;
19
+ border: none;
20
+ display: inline;
21
+ width: auto;
22
+ }
23
+
24
+ .table-of-contents .date {
25
+ padding-right: 1em;
26
+ }
@@ -0,0 +1,3 @@
1
+ table .td {
2
+ padding: 2px;
3
+ }
@@ -0,0 +1,29 @@
1
+ /* Tags on models */
2
+ ul.tags {
3
+ margin: 0px;
4
+ padding: 0px;
5
+ background: url(/images/tag.gif) no-repeat;
6
+ background-position: 0px 3px;
7
+ padding-left: 12px;
8
+ }
9
+
10
+ .tags li {
11
+ display: inline;
12
+ }
13
+
14
+ .tags li:before {
15
+ content: ', '
16
+ }
17
+
18
+ .tags li:first-child:before {
19
+ content: none;
20
+ }
21
+
22
+ /* Global tags display */
23
+ .tags > table {
24
+ width: 100%;
25
+ }
26
+
27
+ .tags > table thead {
28
+ display: none;
29
+ }