cortex-reaver 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cortex_reaver/config.rb +0 -1
- data/lib/cortex_reaver/controller/admin.rb +32 -5
- data/lib/cortex_reaver/controller/user.rb +1 -0
- data/lib/cortex_reaver/helper/form.rb +16 -2
- data/lib/cortex_reaver/helper/navigation.rb +2 -2
- data/lib/cortex_reaver/layout/blank.rhtml +0 -6
- data/lib/cortex_reaver/layout/text.rhtml +0 -6
- data/lib/cortex_reaver/public/css/form.css +6 -57
- data/lib/cortex_reaver/public/css/main.css +2 -0
- data/lib/cortex_reaver/public/css/pagination.css +16 -3
- data/lib/cortex_reaver/public/css/photo-show.css +2 -0
- data/lib/cortex_reaver/public/css/photo.css +2 -0
- data/lib/cortex_reaver/public/js/photo.js +0 -4
- data/lib/cortex_reaver/version.rb +1 -1
- data/lib/cortex_reaver/view/admin/configuration.rhtml +12 -2
- data/lib/cortex_reaver/view/photographs/grid.rhtml +0 -1
- data/lib/cortex_reaver/view/photographs/show.rhtml +0 -8
- metadata +140 -141
- data/lib/cortex_reaver/public/js/jquery.corners.min.js +0 -7
data/lib/cortex_reaver/config.rb
CHANGED
@@ -23,22 +23,49 @@ module CortexReaver
|
|
23
23
|
if request.post?
|
24
24
|
begin
|
25
25
|
# Update config
|
26
|
+
c = CortexReaver.config
|
27
|
+
errors = {}
|
28
|
+
|
29
|
+
# Site
|
30
|
+
c.site.url = request['site.url']
|
31
|
+
c.site.name = request['site.name']
|
32
|
+
c.site.description = request['site.description']
|
33
|
+
c.site.keywords = request['site.keywords']
|
34
|
+
c.site.author = request['site.author']
|
35
|
+
|
36
|
+
errors['site.url'] = "isn't a URL" unless c.site.url =~ /^http:\/\/.+/
|
37
|
+
errors['site.name'] = "is blank" if c.site.name.blank?
|
38
|
+
errors['site.author'] = "is blank" if c.site.author.blank?
|
39
|
+
|
26
40
|
# View sections
|
27
|
-
|
41
|
+
c.view.sections.clear
|
28
42
|
request['view.sections'].split("\n").each do |line|
|
29
43
|
parts = line.strip.split(' ')
|
30
44
|
if parts.size > 1
|
31
|
-
|
45
|
+
c.view.sections << [parts[0..-2].join(' '), parts[-1]]
|
32
46
|
end
|
33
47
|
end
|
34
48
|
|
35
|
-
|
36
|
-
|
37
|
-
|
49
|
+
if errors.empty?
|
50
|
+
# Save
|
51
|
+
CortexReaver.instance_variable_set '@config', c
|
52
|
+
CortexReaver.config.save
|
53
|
+
flash[:notice] = "Configuration saved."
|
54
|
+
redirect rs
|
55
|
+
else
|
56
|
+
flash[:error] = "Configuration errors."
|
57
|
+
@config = c
|
58
|
+
@errors = errors
|
59
|
+
end
|
38
60
|
rescue => e
|
39
61
|
Ramaze::Log.error e.inspect + e.backtrace.join("\n")
|
40
62
|
flash[:error] = "Unable to update configuration: #{h e}"
|
63
|
+
@config = c
|
64
|
+
@errors = {}
|
41
65
|
end
|
66
|
+
else
|
67
|
+
@config = CortexReaver.config
|
68
|
+
@errors = {}
|
42
69
|
end
|
43
70
|
end
|
44
71
|
|
@@ -5,9 +5,14 @@ module Ramaze
|
|
5
5
|
|
6
6
|
# Displays errors on a record.
|
7
7
|
def errors_on(model)
|
8
|
-
|
8
|
+
errors_list(model.errors)
|
9
|
+
end
|
10
|
+
|
11
|
+
# Displays a list of errors.
|
12
|
+
def errors_list(errors)
|
13
|
+
unless errors.empty?
|
9
14
|
s = "<div class=\"form-errors\">\n<h3>Errors</h3>\n<ul>\n"
|
10
|
-
|
15
|
+
errors.each do |attribute, error|
|
11
16
|
if error.kind_of? Array
|
12
17
|
error = error.join(', ')
|
13
18
|
end
|
@@ -63,6 +68,15 @@ module Ramaze
|
|
63
68
|
if model and not default and model.respond_to? id
|
64
69
|
default = model.send(id)
|
65
70
|
end
|
71
|
+
errors = params[:errors]
|
72
|
+
if !errors and model.respond_to? :errors
|
73
|
+
errors = model.errors
|
74
|
+
else
|
75
|
+
errors = {}
|
76
|
+
end
|
77
|
+
error = errors[id]
|
78
|
+
|
79
|
+
p_class = "#{p_class} error" if error
|
66
80
|
|
67
81
|
unless type
|
68
82
|
case default
|
@@ -124,7 +124,7 @@ module Ramaze
|
|
124
124
|
|
125
125
|
if page > 0
|
126
126
|
# Add "previous page" link.
|
127
|
-
links << "<li><a class=\"previous\" href=\"#{klass.url}/page/#{page - 1}\">«
|
127
|
+
links << "<li><a class=\"previous\" href=\"#{klass.url}/page/#{page - 1}\">«</a></li>"
|
128
128
|
else
|
129
129
|
links << "<li class=\"placeholder\"><span class=\"previous\"></span></li>"
|
130
130
|
end
|
@@ -152,7 +152,7 @@ module Ramaze
|
|
152
152
|
|
153
153
|
if page < klass.window_count - 1
|
154
154
|
# Add "next page" link.
|
155
|
-
links << "<li><a class=\"next\" href=\"#{klass.url}/page/#{page + 1}\"
|
155
|
+
links << "<li><a class=\"next\" href=\"#{klass.url}/page/#{page + 1}\">»</a></li>"
|
156
156
|
else
|
157
157
|
links << "<li class=\"placeholder\"><span class=\"next\"></span></li>"
|
158
158
|
end
|
@@ -23,12 +23,6 @@
|
|
23
23
|
<script type="text/javascript">
|
24
24
|
/* <![CDATA[ */
|
25
25
|
$(document).ready(function() {
|
26
|
-
$('#main').corners('10px');
|
27
|
-
|
28
|
-
$('.pagination').each(function() {
|
29
|
-
$(this).find('li:not(.placeholder):first').corners("left");
|
30
|
-
$(this).find('li:not(.placeholder):last').corners("right");
|
31
|
-
});
|
32
26
|
$('.pagination li').not('.elided').add('.actions > li').not('.current').not('.placeholder').each(function(i) {
|
33
27
|
$(this).fadeTo(0,0.8);
|
34
28
|
$(this).hover(
|
@@ -52,12 +52,6 @@
|
|
52
52
|
<script type="text/javascript">
|
53
53
|
/* <![CDATA[ */
|
54
54
|
$(document).ready(function() {
|
55
|
-
$('#main').corners('10px');
|
56
|
-
|
57
|
-
$('.pagination').each(function() {
|
58
|
-
$(this).find('li:not(.placeholder):first').corners("left");
|
59
|
-
$(this).find('li:not(.placeholder):last').corners("right");
|
60
|
-
});
|
61
55
|
$('.pagination li').add('.actions > li').not('.elided').not('.current').not('.placeholder').each(function(i) {
|
62
56
|
$(this).fadeTo(0,0.8);
|
63
57
|
$(this).hover(
|
@@ -1,6 +1,11 @@
|
|
1
1
|
textarea {
|
2
2
|
width: 99%;
|
3
|
-
height:
|
3
|
+
height: 36em;
|
4
|
+
}
|
5
|
+
|
6
|
+
p.small textarea {
|
7
|
+
width: 99%;
|
8
|
+
height: 3em;
|
4
9
|
}
|
5
10
|
|
6
11
|
form p {
|
@@ -110,59 +115,3 @@ form p {
|
|
110
115
|
-moz-user-select: none;
|
111
116
|
-khtml-user-select: none;
|
112
117
|
}
|
113
|
-
|
114
|
-
.p {cursor: pointer;}
|
115
|
-
|
116
|
-
.acfb-input{
|
117
|
-
width: 10em;
|
118
|
-
border-radius: 6px;
|
119
|
-
-moz-border-radius: 6px;
|
120
|
-
-webkit-border-radius: 6px;
|
121
|
-
border: 1px solid #CAD8F3;
|
122
|
-
padding: 1px 5px 2px;
|
123
|
-
background: transparent;
|
124
|
-
margin: 0 5px 4px 0;
|
125
|
-
font: 11px;
|
126
|
-
}
|
127
|
-
|
128
|
-
* html ul.acfb-holder,*:first-child+html ul.acfb-holder {
|
129
|
-
padding-bottom: 2px;
|
130
|
-
}
|
131
|
-
|
132
|
-
ul.acfb-holder {
|
133
|
-
margin : 0;
|
134
|
-
padding : 4px 5px 0;
|
135
|
-
border : 1px solid #999;
|
136
|
-
height : auto !important;
|
137
|
-
height : 1%;
|
138
|
-
overflow: hidden;
|
139
|
-
font : 11px "Lucida Grande", "Verdana";
|
140
|
-
}
|
141
|
-
|
142
|
-
ul.acfb-holder li {
|
143
|
-
float : left;
|
144
|
-
margin : 0 5px 4px 0;
|
145
|
-
list-style-type: none;
|
146
|
-
}
|
147
|
-
|
148
|
-
ul.acfb-holder li.acfb-data {
|
149
|
-
border-radius : 6px;
|
150
|
-
-moz-border-radius : 6px;
|
151
|
-
-webkit-border-radius : 6px;
|
152
|
-
border : 1px solid #CAD8F3;
|
153
|
-
padding : 1px 5px 2px;
|
154
|
-
background : #DEE7F8;
|
155
|
-
}
|
156
|
-
|
157
|
-
.acfb-add {
|
158
|
-
border-radius : 6px;
|
159
|
-
-moz-border-radius : 6px;
|
160
|
-
-webkit-border-radius : 6px;
|
161
|
-
border : 1px solid #CAD8F3;
|
162
|
-
padding : 1px 5px 2px;
|
163
|
-
background : #DEE7F8;
|
164
|
-
margin: 0 5px 4px 0;
|
165
|
-
display: inline-block;
|
166
|
-
text-align: center;
|
167
|
-
cursor: pointer;
|
168
|
-
}
|
@@ -5,14 +5,28 @@
|
|
5
5
|
}
|
6
6
|
|
7
7
|
.pagination.actions li {
|
8
|
+
margin: 1px;
|
8
9
|
padding: 0;
|
9
10
|
width: 38px;
|
10
|
-
margin: 1px;
|
11
11
|
background: #444;
|
12
12
|
display: inline-block;
|
13
13
|
color: white;
|
14
14
|
}
|
15
15
|
|
16
|
+
.pagination.actions li:first-child {
|
17
|
+
-webkit-border-top-left-radius: 4px;
|
18
|
+
-webkit-border-bottom-left-radius: 4px;
|
19
|
+
-moz-border-radius-topleft: 4px;
|
20
|
+
-moz-border-radius-bottomleft: 4px;
|
21
|
+
}
|
22
|
+
|
23
|
+
.pagination.actions li:last-child {
|
24
|
+
-webkit-border-top-right-radius: 4px;
|
25
|
+
-webkit-border-bottom-right-radius: 4px;
|
26
|
+
-moz-border-radius-topright: 4px;
|
27
|
+
-moz-border-radius-bottomright: 4px;
|
28
|
+
}
|
29
|
+
|
16
30
|
.pagination.actions li.elided {
|
17
31
|
background: transparent url('/images/elided.png') center;
|
18
32
|
background-repeat: repeat-y;
|
@@ -24,7 +38,6 @@
|
|
24
38
|
margin: 0;
|
25
39
|
padding: 5px;
|
26
40
|
width: 28px;
|
27
|
-
height: 20px;
|
28
41
|
line-height: 18px;
|
29
42
|
text-decoration: none !important;
|
30
43
|
color: white !important;
|
@@ -36,7 +49,7 @@
|
|
36
49
|
}
|
37
50
|
|
38
51
|
.pagination.actions li > a.previous, .pagination.actions li > a.next {
|
39
|
-
|
52
|
+
text-indent: -100px;
|
40
53
|
}
|
41
54
|
.pagination.actions li > a.previous {
|
42
55
|
background: url('/images/prev_11.png') no-repeat scroll center center;
|
@@ -1,7 +1,17 @@
|
|
1
1
|
<h2>Configuration</h2>
|
2
2
|
|
3
3
|
<form class="edit-form" action="<%= CortexReaver::AdminController.r :configuration %>" method="post">
|
4
|
-
|
5
|
-
|
4
|
+
<%= errors_list @errors %>
|
5
|
+
|
6
|
+
<h3>Site</h3>
|
7
|
+
<%= form_p 'site.url', :type => :text, :description => "URL", :default => @config.site.url %>
|
8
|
+
<%= form_p 'site.name', :type => :text, :description => "Name", :default => @config.site.name %>
|
9
|
+
<%= form_p 'site.keywords', :type => :text, :description => 'Keywords', :default => @config.site.keywords %>
|
10
|
+
<%= form_p 'site.author', :type => :text, :description => 'Author', :default => @config.site.author %>
|
11
|
+
<%= form_p 'site.description', :type => :textarea, :description => 'Description', :default => @config.site.description, :p_class => 'small' %>
|
12
|
+
|
13
|
+
<h3>Navigation</h3>
|
14
|
+
<%= form_p 'view.sections', :type => :textarea, :description => @config.view.schema[:sections][:desc], :default => @config.view.sections.map{ |p| p.join(' ') }.join("\n") %>
|
15
|
+
|
6
16
|
<input type="submit" value="Update Configuration" />
|
7
17
|
</form>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cortex-reaver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Kingsbury
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-17 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -152,178 +152,177 @@ extra_rdoc_files: []
|
|
152
152
|
|
153
153
|
files:
|
154
154
|
- bin/cortex_reaver
|
155
|
-
- lib/cortex_reaver
|
156
|
-
- lib/cortex_reaver/helper/feeds.rb
|
157
|
-
- lib/cortex_reaver/helper/activity.rb
|
158
|
-
- lib/cortex_reaver/helper/navigation.rb
|
159
|
-
- lib/cortex_reaver/helper/date.rb
|
160
|
-
- lib/cortex_reaver/helper/workflow.rb
|
161
|
-
- lib/cortex_reaver/helper/attachments.rb
|
162
|
-
- lib/cortex_reaver/helper/tags.rb
|
163
|
-
- lib/cortex_reaver/helper/photographs.rb
|
164
|
-
- lib/cortex_reaver/helper/auth.rb
|
165
|
-
- lib/cortex_reaver/helper/crud.rb
|
166
|
-
- lib/cortex_reaver/helper/sidebar.rb
|
167
|
-
- lib/cortex_reaver/helper/error.rb
|
168
|
-
- lib/cortex_reaver/helper/canonical.rb
|
169
|
-
- lib/cortex_reaver/helper/pages.rb
|
170
|
-
- lib/cortex_reaver/config.rb
|
171
|
-
- lib/cortex_reaver/snippets/array.rb
|
172
|
-
- lib/cortex_reaver/snippets/range.rb
|
173
|
-
- lib/cortex_reaver/snippets/numeric.rb
|
174
|
-
- lib/cortex_reaver/snippets/ramaze/cache/memcached.rb
|
155
|
+
- lib/cortex_reaver.rb
|
175
156
|
- lib/cortex_reaver/layout/text.rhtml
|
176
157
|
- lib/cortex_reaver/layout/blank.rhtml
|
177
|
-
- lib/cortex_reaver/
|
178
|
-
- lib/cortex_reaver/
|
179
|
-
- lib/cortex_reaver/
|
180
|
-
- lib/cortex_reaver/view/admin/configuration.rhtml
|
181
|
-
- lib/cortex_reaver/view/admin/update_tags.rhtml
|
182
|
-
- lib/cortex_reaver/view/head.rhtml
|
183
|
-
- lib/cortex_reaver/view/pages/show.rhtml
|
184
|
-
- lib/cortex_reaver/view/pages/list.rhtml
|
185
|
-
- lib/cortex_reaver/view/pages/form.rhtml
|
186
|
-
- lib/cortex_reaver/view/pages/row.rhtml
|
187
|
-
- lib/cortex_reaver/view/documentation/users.rhtml
|
188
|
-
- lib/cortex_reaver/view/documentation/formatting.rhtml
|
189
|
-
- lib/cortex_reaver/view/config/form.rhtml
|
190
|
-
- lib/cortex_reaver/view/comments/post_form.rhtml
|
191
|
-
- lib/cortex_reaver/view/comments/comment.rhtml
|
192
|
-
- lib/cortex_reaver/view/comments/list.rhtml
|
193
|
-
- lib/cortex_reaver/view/comments/form.rhtml
|
194
|
-
- lib/cortex_reaver/view/tags/show.rhtml
|
195
|
-
- lib/cortex_reaver/view/tags/list.rhtml
|
196
|
-
- lib/cortex_reaver/view/tags/form.rhtml
|
197
|
-
- lib/cortex_reaver/view/photographs/show.rhtml
|
198
|
-
- lib/cortex_reaver/view/photographs/grid.rhtml
|
199
|
-
- lib/cortex_reaver/view/photographs/atom_fragment.rhtml
|
200
|
-
- lib/cortex_reaver/view/photographs/list.rhtml
|
201
|
-
- lib/cortex_reaver/view/photographs/form.rhtml
|
202
|
-
- lib/cortex_reaver/view/users/show.rhtml
|
203
|
-
- lib/cortex_reaver/view/users/register.rhtml
|
204
|
-
- lib/cortex_reaver/view/users/user.rhtml
|
205
|
-
- lib/cortex_reaver/view/users/list.rhtml
|
206
|
-
- lib/cortex_reaver/view/users/form.rhtml
|
207
|
-
- lib/cortex_reaver/view/users/login.rhtml
|
208
|
-
- lib/cortex_reaver/view/sidebar/explore_photos.rhtml
|
209
|
-
- lib/cortex_reaver/view/sidebar/photographs.rhtml
|
210
|
-
- lib/cortex_reaver/view/sidebar/twitter.rhtml
|
211
|
-
- lib/cortex_reaver/view/sidebar/sections.rhtml
|
212
|
-
- lib/cortex_reaver/view/journals/show.rhtml
|
213
|
-
- lib/cortex_reaver/view/journals/short.rhtml
|
214
|
-
- lib/cortex_reaver/view/journals/list.rhtml
|
215
|
-
- lib/cortex_reaver/view/journals/form.rhtml
|
216
|
-
- lib/cortex_reaver/view/journals/journal.rhtml
|
217
|
-
- lib/cortex_reaver/view/tracker.rhtml
|
218
|
-
- lib/cortex_reaver/view/js.rhtml
|
219
|
-
- lib/cortex_reaver/view/adminbox.rhtml
|
220
|
-
- lib/cortex_reaver/migrations/004_photographs.rb
|
221
|
-
- lib/cortex_reaver/migrations/008_config.rb
|
222
|
-
- lib/cortex_reaver/migrations/011_user_roles.rb
|
223
|
-
- lib/cortex_reaver/migrations/002_pages.rb
|
224
|
-
- lib/cortex_reaver/migrations/007_comments.rb
|
225
|
-
- lib/cortex_reaver/migrations/009_mysql.rb
|
226
|
-
- lib/cortex_reaver/migrations/005_projects.rb
|
227
|
-
- lib/cortex_reaver/migrations/001_users.rb
|
228
|
-
- lib/cortex_reaver/migrations/012_created_by_edited_by.rb
|
229
|
-
- lib/cortex_reaver/migrations/010_pageparents.rb
|
230
|
-
- lib/cortex_reaver/migrations/003_journals.rb
|
231
|
-
- lib/cortex_reaver/migrations/013_draft.rb
|
232
|
-
- lib/cortex_reaver/migrations/006_tags.rb
|
233
|
-
- lib/cortex_reaver/migrations/014_convert_projects_to_pages.rb
|
234
|
-
- lib/cortex_reaver/model/tag.rb
|
235
|
-
- lib/cortex_reaver/model/page.rb
|
236
|
-
- lib/cortex_reaver/model/model.rb
|
237
|
-
- lib/cortex_reaver/model/journal.rb
|
238
|
-
- lib/cortex_reaver/model/comment.rb
|
239
|
-
- lib/cortex_reaver/model/photograph.rb
|
240
|
-
- lib/cortex_reaver/model/user.rb
|
241
|
-
- lib/cortex_reaver/public/css/fonts.css
|
242
|
-
- lib/cortex_reaver/public/css/colophon.css
|
243
|
-
- lib/cortex_reaver/public/css/commments.css
|
244
|
-
- lib/cortex_reaver/public/css/pagination.css
|
158
|
+
- lib/cortex_reaver/public/css/custom.css
|
159
|
+
- lib/cortex_reaver/public/css/table.css
|
160
|
+
- lib/cortex_reaver/public/css/icons.css
|
245
161
|
- lib/cortex_reaver/public/css/actions.css
|
246
|
-
- lib/cortex_reaver/public/css/
|
247
|
-
- lib/cortex_reaver/public/css/
|
162
|
+
- lib/cortex_reaver/public/css/journals.css
|
163
|
+
- lib/cortex_reaver/public/css/fonts.css
|
248
164
|
- lib/cortex_reaver/public/css/text.css
|
249
|
-
- lib/cortex_reaver/public/css/
|
250
|
-
- lib/cortex_reaver/public/css/tags.css
|
165
|
+
- lib/cortex_reaver/public/css/colophon.css
|
251
166
|
- lib/cortex_reaver/public/css/table-of-contents.css
|
252
|
-
- lib/cortex_reaver/public/css/
|
253
|
-
- lib/cortex_reaver/public/css/top_actions.css
|
167
|
+
- lib/cortex_reaver/public/css/photo-show.css
|
254
168
|
- lib/cortex_reaver/public/css/flash.css
|
255
|
-
- lib/cortex_reaver/public/css/
|
256
|
-
- lib/cortex_reaver/public/css/
|
257
|
-
- lib/cortex_reaver/public/css/
|
258
|
-
- lib/cortex_reaver/public/css/sidebar.css
|
259
|
-
- lib/cortex_reaver/public/css/journals.css
|
169
|
+
- lib/cortex_reaver/public/css/top_actions.css
|
170
|
+
- lib/cortex_reaver/public/css/form.css
|
171
|
+
- lib/cortex_reaver/public/css/tags.css
|
260
172
|
- lib/cortex_reaver/public/css/autotags.css
|
173
|
+
- lib/cortex_reaver/public/css/admin.css
|
174
|
+
- lib/cortex_reaver/public/css/generics.css
|
175
|
+
- lib/cortex_reaver/public/css/pagination.css
|
261
176
|
- lib/cortex_reaver/public/css/photo.css
|
262
177
|
- lib/cortex_reaver/public/css/main.css
|
263
|
-
- lib/cortex_reaver/public/css/
|
264
|
-
- lib/cortex_reaver/public/css/
|
265
|
-
- lib/cortex_reaver/public/css/
|
266
|
-
- lib/cortex_reaver/public/css/
|
267
|
-
- lib/cortex_reaver/public/
|
268
|
-
- lib/cortex_reaver/public/
|
269
|
-
- lib/cortex_reaver/public/images/admin/icons.png
|
178
|
+
- lib/cortex_reaver/public/css/sidebar.css
|
179
|
+
- lib/cortex_reaver/public/css/commments.css
|
180
|
+
- lib/cortex_reaver/public/css/attachments.css
|
181
|
+
- lib/cortex_reaver/public/css/progress.css
|
182
|
+
- lib/cortex_reaver/public/css/code.css
|
183
|
+
- lib/cortex_reaver/public/css/users.css
|
270
184
|
- lib/cortex_reaver/public/images/next_34_prelight.png
|
271
|
-
- lib/cortex_reaver/public/images/next_34.png
|
272
|
-
- lib/cortex_reaver/public/images/prev_34_prelight.png
|
273
|
-
- lib/cortex_reaver/public/images/grid_34.png
|
274
|
-
- lib/cortex_reaver/public/images/next_11.png
|
275
|
-
- lib/cortex_reaver/public/images/dark_trans.png
|
276
185
|
- lib/cortex_reaver/public/images/grid_34_prelight.png
|
277
|
-
- lib/cortex_reaver/public/images/delete.gif
|
278
|
-
- lib/cortex_reaver/public/images/header_background.png
|
279
186
|
- lib/cortex_reaver/public/images/prev_34.png
|
280
|
-
- lib/cortex_reaver/public/images/edit.gif
|
281
|
-
- lib/cortex_reaver/public/images/elided.png
|
282
|
-
- lib/cortex_reaver/public/images/background_tile.png
|
283
|
-
- lib/cortex_reaver/public/images/edit_34.png
|
284
|
-
- lib/cortex_reaver/public/images/parent.gif
|
285
187
|
- lib/cortex_reaver/public/images/tag.gif
|
188
|
+
- lib/cortex_reaver/public/images/prev_34_prelight.png
|
189
|
+
- lib/cortex_reaver/public/images/header_background.png
|
190
|
+
- lib/cortex_reaver/public/images/delete.gif
|
191
|
+
- lib/cortex_reaver/public/images/parent.gif
|
192
|
+
- lib/cortex_reaver/public/images/edit_34.png
|
193
|
+
- lib/cortex_reaver/public/images/grid_34.png
|
286
194
|
- lib/cortex_reaver/public/images/edit_34_prelight.png
|
195
|
+
- lib/cortex_reaver/public/images/admin/icons.xcf
|
196
|
+
- lib/cortex_reaver/public/images/admin/icons.png
|
197
|
+
- lib/cortex_reaver/public/images/elided.png
|
198
|
+
- lib/cortex_reaver/public/images/next_34.png
|
199
|
+
- lib/cortex_reaver/public/images/next_11.png
|
287
200
|
- lib/cortex_reaver/public/images/CortexReaver.gif
|
201
|
+
- lib/cortex_reaver/public/images/dark_trans.png
|
202
|
+
- lib/cortex_reaver/public/images/background_tile.png
|
288
203
|
- lib/cortex_reaver/public/images/prev_11.png
|
289
204
|
- lib/cortex_reaver/public/images/comment.gif
|
290
|
-
- lib/cortex_reaver/public/
|
291
|
-
- lib/cortex_reaver/public/js/photo.js
|
292
|
-
- lib/cortex_reaver/public/js/jquery.js
|
205
|
+
- lib/cortex_reaver/public/images/edit.gif
|
293
206
|
- lib/cortex_reaver/public/js/jquery.dimensions.js
|
294
|
-
- lib/cortex_reaver/public/js/jquery.corners.min.js
|
295
|
-
- lib/cortex_reaver/public/js/autotags.js
|
296
|
-
- lib/cortex_reaver/public/js/jquery.periodicalupdater.js
|
297
|
-
- lib/cortex_reaver/public/js/jquery.bgiframe.min.js
|
298
207
|
- lib/cortex_reaver/public/js/cookie.js
|
208
|
+
- lib/cortex_reaver/public/js/admin.js
|
299
209
|
- lib/cortex_reaver/public/js/jquery.autocomplete.js
|
210
|
+
- lib/cortex_reaver/public/js/jquery.js
|
211
|
+
- lib/cortex_reaver/public/js/jquery.bgiframe.min.js
|
212
|
+
- lib/cortex_reaver/public/js/photo.js
|
213
|
+
- lib/cortex_reaver/public/js/jquery.periodicalupdater.js
|
300
214
|
- lib/cortex_reaver/public/js/jquery.color.js
|
301
|
-
- lib/cortex_reaver/public/js/
|
215
|
+
- lib/cortex_reaver/public/js/autotags.js
|
216
|
+
- lib/cortex_reaver/public/js/jquery.hotkeys-0.7.9.js
|
217
|
+
- lib/cortex_reaver/public/robots.txt
|
218
|
+
- lib/cortex_reaver/model/tag.rb
|
219
|
+
- lib/cortex_reaver/model/model.rb
|
220
|
+
- lib/cortex_reaver/model/comment.rb
|
221
|
+
- lib/cortex_reaver/model/photograph.rb
|
222
|
+
- lib/cortex_reaver/model/journal.rb
|
223
|
+
- lib/cortex_reaver/model/user.rb
|
224
|
+
- lib/cortex_reaver/model/page.rb
|
302
225
|
- lib/cortex_reaver/plugin.rb
|
226
|
+
- lib/cortex_reaver/plugins/twitter.rb
|
303
227
|
- lib/cortex_reaver/version.rb
|
228
|
+
- lib/cortex_reaver/snippets/numeric.rb
|
229
|
+
- lib/cortex_reaver/snippets/array.rb
|
230
|
+
- lib/cortex_reaver/snippets/ramaze/cache/memcached.rb
|
231
|
+
- lib/cortex_reaver/snippets/range.rb
|
232
|
+
- lib/cortex_reaver/view/sidebar/twitter.rhtml
|
233
|
+
- lib/cortex_reaver/view/sidebar/photographs.rhtml
|
234
|
+
- lib/cortex_reaver/view/sidebar/explore_photos.rhtml
|
235
|
+
- lib/cortex_reaver/view/sidebar/sections.rhtml
|
236
|
+
- lib/cortex_reaver/view/journals/short.rhtml
|
237
|
+
- lib/cortex_reaver/view/journals/form.rhtml
|
238
|
+
- lib/cortex_reaver/view/journals/list.rhtml
|
239
|
+
- lib/cortex_reaver/view/journals/show.rhtml
|
240
|
+
- lib/cortex_reaver/view/journals/journal.rhtml
|
241
|
+
- lib/cortex_reaver/view/tracker.rhtml
|
242
|
+
- lib/cortex_reaver/view/users/form.rhtml
|
243
|
+
- lib/cortex_reaver/view/users/login.rhtml
|
244
|
+
- lib/cortex_reaver/view/users/list.rhtml
|
245
|
+
- lib/cortex_reaver/view/users/show.rhtml
|
246
|
+
- lib/cortex_reaver/view/users/register.rhtml
|
247
|
+
- lib/cortex_reaver/view/users/user.rhtml
|
248
|
+
- lib/cortex_reaver/view/comments/form.rhtml
|
249
|
+
- lib/cortex_reaver/view/comments/comment.rhtml
|
250
|
+
- lib/cortex_reaver/view/comments/list.rhtml
|
251
|
+
- lib/cortex_reaver/view/comments/post_form.rhtml
|
252
|
+
- lib/cortex_reaver/view/documentation/users.rhtml
|
253
|
+
- lib/cortex_reaver/view/documentation/formatting.rhtml
|
254
|
+
- lib/cortex_reaver/view/admin/index.rhtml
|
255
|
+
- lib/cortex_reaver/view/admin/configuration.rhtml
|
256
|
+
- lib/cortex_reaver/view/admin/regenerate_photo_sizes.rhtml
|
257
|
+
- lib/cortex_reaver/view/admin/update_tags.rhtml
|
258
|
+
- lib/cortex_reaver/view/js.rhtml
|
259
|
+
- lib/cortex_reaver/view/photographs/form.rhtml
|
260
|
+
- lib/cortex_reaver/view/photographs/list.rhtml
|
261
|
+
- lib/cortex_reaver/view/photographs/grid.rhtml
|
262
|
+
- lib/cortex_reaver/view/photographs/show.rhtml
|
263
|
+
- lib/cortex_reaver/view/photographs/atom_fragment.rhtml
|
264
|
+
- lib/cortex_reaver/view/config/form.rhtml
|
265
|
+
- lib/cortex_reaver/view/pages/form.rhtml
|
266
|
+
- lib/cortex_reaver/view/pages/list.rhtml
|
267
|
+
- lib/cortex_reaver/view/pages/show.rhtml
|
268
|
+
- lib/cortex_reaver/view/pages/row.rhtml
|
269
|
+
- lib/cortex_reaver/view/tags/form.rhtml
|
270
|
+
- lib/cortex_reaver/view/tags/list.rhtml
|
271
|
+
- lib/cortex_reaver/view/tags/show.rhtml
|
272
|
+
- lib/cortex_reaver/view/adminbox.rhtml
|
273
|
+
- lib/cortex_reaver/view/head.rhtml
|
304
274
|
- lib/cortex_reaver/cache.rb
|
275
|
+
- lib/cortex_reaver/migrations/003_journals.rb
|
276
|
+
- lib/cortex_reaver/migrations/009_mysql.rb
|
277
|
+
- lib/cortex_reaver/migrations/011_user_roles.rb
|
278
|
+
- lib/cortex_reaver/migrations/002_pages.rb
|
279
|
+
- lib/cortex_reaver/migrations/006_tags.rb
|
280
|
+
- lib/cortex_reaver/migrations/005_projects.rb
|
281
|
+
- lib/cortex_reaver/migrations/010_pageparents.rb
|
282
|
+
- lib/cortex_reaver/migrations/008_config.rb
|
283
|
+
- lib/cortex_reaver/migrations/012_created_by_edited_by.rb
|
284
|
+
- lib/cortex_reaver/migrations/007_comments.rb
|
285
|
+
- lib/cortex_reaver/migrations/014_convert_projects_to_pages.rb
|
286
|
+
- lib/cortex_reaver/migrations/013_draft.rb
|
287
|
+
- lib/cortex_reaver/migrations/001_users.rb
|
288
|
+
- lib/cortex_reaver/migrations/004_photographs.rb
|
305
289
|
- lib/cortex_reaver/controller/tag.rb
|
306
|
-
- lib/cortex_reaver/controller/config.rb
|
307
|
-
- lib/cortex_reaver/controller/admin.rb
|
308
|
-
- lib/cortex_reaver/controller/page.rb
|
309
|
-
- lib/cortex_reaver/controller/journal.rb
|
310
290
|
- lib/cortex_reaver/controller/main.rb
|
311
291
|
- lib/cortex_reaver/controller/comment.rb
|
312
|
-
- lib/cortex_reaver/controller/
|
292
|
+
- lib/cortex_reaver/controller/admin.rb
|
313
293
|
- lib/cortex_reaver/controller/photograph.rb
|
294
|
+
- lib/cortex_reaver/controller/journal.rb
|
314
295
|
- lib/cortex_reaver/controller/user.rb
|
296
|
+
- lib/cortex_reaver/controller/documentation.rb
|
315
297
|
- lib/cortex_reaver/controller/controller.rb
|
316
|
-
- lib/cortex_reaver/
|
317
|
-
- lib/cortex_reaver/
|
298
|
+
- lib/cortex_reaver/controller/config.rb
|
299
|
+
- lib/cortex_reaver/controller/page.rb
|
300
|
+
- lib/cortex_reaver/config.rb
|
318
301
|
- lib/cortex_reaver/support/attachments.rb
|
319
|
-
- lib/cortex_reaver/support/
|
320
|
-
- lib/cortex_reaver/support/tags.rb
|
321
|
-
- lib/cortex_reaver/support/renderer.rb
|
322
|
-
- lib/cortex_reaver/support/timestamps.rb
|
302
|
+
- lib/cortex_reaver/support/cortex_reaver_validation_helpers.rb
|
323
303
|
- lib/cortex_reaver/support/sequenceable.rb
|
324
|
-
- lib/cortex_reaver/support/canonical.rb
|
325
304
|
- lib/cortex_reaver/support/viewable.rb
|
326
|
-
- lib/cortex_reaver.rb
|
305
|
+
- lib/cortex_reaver/support/canonical.rb
|
306
|
+
- lib/cortex_reaver/support/tags.rb
|
307
|
+
- lib/cortex_reaver/support/timestamps.rb
|
308
|
+
- lib/cortex_reaver/support/comments.rb
|
309
|
+
- lib/cortex_reaver/support/renderer.rb
|
310
|
+
- lib/cortex_reaver/support/cached_rendering.rb
|
311
|
+
- lib/cortex_reaver/helper/feeds.rb
|
312
|
+
- lib/cortex_reaver/helper/sidebar.rb
|
313
|
+
- lib/cortex_reaver/helper/workflow.rb
|
314
|
+
- lib/cortex_reaver/helper/attachments.rb
|
315
|
+
- lib/cortex_reaver/helper/navigation.rb
|
316
|
+
- lib/cortex_reaver/helper/crud.rb
|
317
|
+
- lib/cortex_reaver/helper/photographs.rb
|
318
|
+
- lib/cortex_reaver/helper/pages.rb
|
319
|
+
- lib/cortex_reaver/helper/canonical.rb
|
320
|
+
- lib/cortex_reaver/helper/tags.rb
|
321
|
+
- lib/cortex_reaver/helper/auth.rb
|
322
|
+
- lib/cortex_reaver/helper/form.rb
|
323
|
+
- lib/cortex_reaver/helper/activity.rb
|
324
|
+
- lib/cortex_reaver/helper/date.rb
|
325
|
+
- lib/cortex_reaver/helper/error.rb
|
327
326
|
- LICENSE
|
328
327
|
- README
|
329
328
|
has_rdoc: true
|
@@ -1,7 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* jQuery Corners 0.3
|
3
|
-
* Copyright (c) 2008 David Turnbull, Steven Wittens
|
4
|
-
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
5
|
-
* and GPL (GPL-LICENSE.txt) licenses.
|
6
|
-
*/
|
7
|
-
jQuery.fn.corners=function(C){var N="rounded_by_jQuery_corners";var V=B(C);var F=false;try{F=(document.body.style.WebkitBorderRadius!==undefined);var Y=navigator.userAgent.indexOf("Chrome");if(Y>=0){F=false}}catch(E){}var W=false;try{W=(document.body.style.MozBorderRadius!==undefined);var Y=navigator.userAgent.indexOf("Firefox");if(Y>=0&&parseInt(navigator.userAgent.substring(Y+8))<3){W=false}}catch(E){}return this.each(function(b,h){$e=jQuery(h);if($e.hasClass(N)){return }$e.addClass(N);var a=/{(.*)}/.exec(h.className);var c=a?B(a[1],V):V;var j=h.nodeName.toLowerCase();if(j=="input"){h=O(h)}if(F&&c.webkit){K(h,c)}else{if(W&&c.mozilla&&(c.sizex==c.sizey)){M(h,c)}else{var d=D(h.parentNode);var f=D(h);switch(j){case"a":case"input":Z(h,c,d,f);break;default:R(h,c,d,f);break}}}});function K(d,c){var a=""+c.sizex+"px "+c.sizey+"px";var b=jQuery(d);if(c.tl){b.css("WebkitBorderTopLeftRadius",a)}if(c.tr){b.css("WebkitBorderTopRightRadius",a)}if(c.bl){b.css("WebkitBorderBottomLeftRadius",a)}if(c.br){b.css("WebkitBorderBottomRightRadius",a)}}function M(d,c){var a=""+c.sizex+"px";var b=jQuery(d);if(c.tl){b.css("-moz-border-radius-topleft",a)}if(c.tr){b.css("-moz-border-radius-topright",a)}if(c.bl){b.css("-moz-border-radius-bottomleft",a)}if(c.br){b.css("-moz-border-radius-bottomright",a)}}function Z(k,n,l,a){var m=S("table");var i=S("tbody");m.appendChild(i);var j=S("tr");var d=S("td","top");j.appendChild(d);var h=S("tr");var c=T(k,n,S("td"));h.appendChild(c);var f=S("tr");var b=S("td","bottom");f.appendChild(b);if(n.tl||n.tr){i.appendChild(j);X(d,n,l,a,true)}i.appendChild(h);if(n.bl||n.br){i.appendChild(f);X(b,n,l,a,false)}k.appendChild(m);if(jQuery.browser.msie){m.onclick=Q}k.style.overflow="hidden"}function Q(){if(!this.parentNode.onclick){this.parentNode.click()}}function O(c){var b=document.createElement("a");b.id=c.id;b.className=c.className;if(c.onclick){b.href="javascript:";b.onclick=c.onclick}else{jQuery(c).parent("form").each(function(){b.href=this.action});b.onclick=I}var a=document.createTextNode(c.value);b.appendChild(a);c.parentNode.replaceChild(b,c);return b}function I(){jQuery(this).parent("form").each(function(){this.submit()});return false}function R(d,a,b,c){var f=T(d,a,document.createElement("div"));d.appendChild(f);if(a.tl||a.tr){X(d,a,b,c,true)}if(a.bl||a.br){X(d,a,b,c,false)}}function T(j,i,k){var b=jQuery(j);var l;while(l=j.firstChild){k.appendChild(l)}if(j.style.height){var f=parseInt(b.css("height"));k.style.height=f+"px";f+=parseInt(b.css("padding-top"))+parseInt(b.css("padding-bottom"));j.style.height=f+"px"}if(j.style.width){var a=parseInt(b.css("width"));k.style.width=a+"px";a+=parseInt(b.css("padding-left"))+parseInt(b.css("padding-right"));j.style.width=a+"px"}k.style.paddingLeft=b.css("padding-left");k.style.paddingRight=b.css("padding-right");if(i.tl||i.tr){k.style.paddingTop=U(j,i,b.css("padding-top"),true)}else{k.style.paddingTop=b.css("padding-top")}if(i.bl||i.br){k.style.paddingBottom=U(j,i,b.css("padding-bottom"),false)}else{k.style.paddingBottom=b.css("padding-bottom")}j.style.padding=0;return k}function U(f,a,d,c){if(d.indexOf("px")<0){try{console.error("%s padding not in pixels",(c?"top":"bottom"),f)}catch(b){}d=a.sizey+"px"}d=parseInt(d);if(d-a.sizey<0){try{console.error("%s padding is %ipx for %ipx corner:",(c?"top":"bottom"),d,a.sizey,f)}catch(b){}d=a.sizey}return d-a.sizey+"px"}function S(b,a){var c=document.createElement(b);c.style.border="none";c.style.borderCollapse="collapse";c.style.borderSpacing=0;c.style.padding=0;c.style.margin=0;if(a){c.style.verticalAlign=a}return c}function D(b){try{var d=jQuery.css(b,"background-color");if(d.match(/^(transparent|rgba\(0,\s*0,\s*0,\s*0\))$/i)&&b.parentNode){return D(b.parentNode)}if(d==null){return"#ffffff"}if(d.indexOf("rgb")>-1){d=A(d)}if(d.length==4){d=L(d)}return d}catch(a){return"#ffffff"}}function L(a){return"#"+a.substring(1,2)+a.substring(1,2)+a.substring(2,3)+a.substring(2,3)+a.substring(3,4)+a.substring(3,4)}function A(h){var a=255;var d="";var b;var e=/([0-9]+)[, ]+([0-9]+)[, ]+([0-9]+)/;var f=e.exec(h);for(b=1;b<4;b++){d+=("0"+parseInt(f[b]).toString(16)).slice(-2)}return"#"+d}function B(b,d){var b=b||"";var c={sizex:5,sizey:5,tl:false,tr:false,bl:false,br:false,webkit:true,mozilla:true,transparent:false};if(d){c.sizex=d.sizex;c.sizey=d.sizey;c.webkit=d.webkit;c.transparent=d.transparent;c.mozilla=d.mozilla}var a=false;var e=false;jQuery.each(b.split(" "),function(f,j){j=j.toLowerCase();var h=parseInt(j);if(h>0&&j==h+"px"){c.sizey=h;if(!a){c.sizex=h}a=true}else{switch(j){case"no-native":c.webkit=c.mozilla=false;break;case"webkit":c.webkit=true;break;case"no-webkit":c.webkit=false;break;case"mozilla":c.mozilla=true;break;case"no-mozilla":c.mozilla=false;break;case"anti-alias":c.transparent=false;break;case"transparent":c.transparent=true;break;case"top":e=c.tl=c.tr=true;break;case"right":e=c.tr=c.br=true;break;case"bottom":e=c.bl=c.br=true;break;case"left":e=c.tl=c.bl=true;break;case"top-left":e=c.tl=true;break;case"top-right":e=c.tr=true;break;case"bottom-left":e=c.bl=true;break;case"bottom-right":e=c.br=true;break}}});if(!e){if(!d){c.tl=c.tr=c.bl=c.br=true}else{c.tl=d.tl;c.tr=d.tr;c.bl=d.bl;c.br=d.br}}return c}function P(f,d,h){var e=Array(parseInt("0x"+f.substring(1,3)),parseInt("0x"+f.substring(3,5)),parseInt("0x"+f.substring(5,7)));var c=Array(parseInt("0x"+d.substring(1,3)),parseInt("0x"+d.substring(3,5)),parseInt("0x"+d.substring(5,7)));r="0"+Math.round(e[0]+(c[0]-e[0])*h).toString(16);g="0"+Math.round(e[1]+(c[1]-e[1])*h).toString(16);d="0"+Math.round(e[2]+(c[2]-e[2])*h).toString(16);return"#"+r.substring(r.length-2)+g.substring(g.length-2)+d.substring(d.length-2)}function X(f,a,b,d,c){if(a.transparent){G(f,a,b,c)}else{J(f,a,b,d,c)}}function J(k,z,p,a,n){var h,f;var l=document.createElement("div");l.style.fontSize="1px";l.style.backgroundColor=p;var b=0;for(h=1;h<=z.sizey;h++){var u,t,q;arc=Math.sqrt(1-Math.pow(1-h/z.sizey,2))*z.sizex;var c=z.sizex-Math.ceil(arc);var w=Math.floor(b);var v=z.sizex-c-w;var o=document.createElement("div");var m=l;o.style.margin="0px "+c+"px";o.style.height="1px";o.style.overflow="hidden";for(f=1;f<=v;f++){if(f==1){if(f==v){u=((arc+b)*0.5)-w}else{t=Math.sqrt(1-Math.pow(1-(c+1)/z.sizex,2))*z.sizey;u=(t-(z.sizey-h))*(arc-w-v+1)*0.5}}else{if(f==v){t=Math.sqrt(1-Math.pow((z.sizex-c-f+1)/z.sizex,2))*z.sizey;u=1-(1-(t-(z.sizey-h)))*(1-(b-w))*0.5}else{q=Math.sqrt(1-Math.pow((z.sizex-c-f)/z.sizex,2))*z.sizey;t=Math.sqrt(1-Math.pow((z.sizex-c-f+1)/z.sizex,2))*z.sizey;u=((t+q)*0.5)-(z.sizey-h)}}H(z,o,m,n,P(p,a,u));m=o;var o=m.cloneNode(false);o.style.margin="0px 1px"}H(z,o,m,n,a);b=arc}if(n){k.insertBefore(l,k.firstChild)}else{k.appendChild(l)}}function H(c,a,e,d,b){if(d&&!c.tl){a.style.marginLeft=0}if(d&&!c.tr){a.style.marginRight=0}if(!d&&!c.bl){a.style.marginLeft=0}if(!d&&!c.br){a.style.marginRight=0}a.style.backgroundColor=b;if(d){e.appendChild(a)}else{e.insertBefore(a,e.firstChild)}}function G(c,o,l,h){var f=document.createElement("div");f.style.fontSize="1px";var a=document.createElement("div");a.style.overflow="hidden";a.style.height="1px";a.style.borderColor=l;a.style.borderStyle="none solid";var m=o.sizex-1;var j=o.sizey-1;if(!j){j=1}for(var b=0;b<o.sizey;b++){var n=m-Math.floor(Math.sqrt(1-Math.pow(1-b/j,2))*m);if(b==2&&o.sizex==6&&o.sizey==6){n=2}var k=a.cloneNode(false);k.style.borderWidth="0 "+n+"px";if(h){k.style.borderWidth="0 "+(o.tr?n:0)+"px 0 "+(o.tl?n:0)+"px"}else{k.style.borderWidth="0 "+(o.br?n:0)+"px 0 "+(o.bl?n:0)+"px"}h?f.appendChild(k):f.insertBefore(k,f.firstChild)}if(h){c.insertBefore(f,c.firstChild)}else{c.appendChild(f)}}};
|