refinerycms 0.9.6.31 → 0.9.6.32
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/refinery-update-core +1 -1
- data/config/application.rb +1 -1
- data/db/seeds.rb +17 -16
- data/public/images/refinery/icons/zoom.png +0 -0
- data/public/images/wymeditor/skins/refinery/arrow_redo.png +0 -0
- data/public/images/wymeditor/skins/refinery/arrow_undo.png +0 -0
- data/public/images/wymeditor/skins/refinery/eye.png +0 -0
- data/public/images/wymeditor/skins/refinery/link_add.png +0 -0
- data/public/images/wymeditor/skins/refinery/link_break.png +0 -0
- data/public/images/wymeditor/skins/refinery/page_code.png +0 -0
- data/public/images/wymeditor/skins/refinery/page_paste.png +0 -0
- data/public/images/wymeditor/skins/refinery/photo_add.png +0 -0
- data/public/images/wymeditor/skins/refinery/style.png +0 -0
- data/public/images/wymeditor/skins/refinery/table_add.png +0 -0
- data/public/images/wymeditor/skins/refinery/{center.png → text_align_center.png} +0 -0
- data/public/images/wymeditor/skins/refinery/{justify.png → text_align_justify.png} +0 -0
- data/public/images/wymeditor/skins/refinery/{left.png → text_align_left.png} +0 -0
- data/public/images/wymeditor/skins/refinery/text_align_right.png +0 -0
- data/public/images/wymeditor/skins/refinery/text_bold.png +0 -0
- data/public/images/wymeditor/skins/refinery/{h1.png → text_heading_1.png} +0 -0
- data/public/images/wymeditor/skins/refinery/{h2.png → text_heading_2.png} +0 -0
- data/public/images/wymeditor/skins/refinery/{h3.png → text_heading_3.png} +0 -0
- data/public/images/wymeditor/skins/refinery/{h4.png → text_heading_4.png} +0 -0
- data/public/images/wymeditor/skins/refinery/{h5.png → text_heading_5.png} +0 -0
- data/public/images/wymeditor/skins/refinery/{h6.png → text_heading_6.png} +0 -0
- data/public/images/wymeditor/skins/refinery/text_italic.png +0 -0
- data/public/images/wymeditor/skins/refinery/text_list_bullets.png +0 -0
- data/public/images/wymeditor/skins/refinery/text_list_numbers.png +0 -0
- data/public/images/wymeditor/skins/refinery/{paragraph.png → text_paragraph.png} +0 -0
- data/public/images/wymeditor/skins/refinery/text_strikethrough.png +0 -0
- data/public/images/wymeditor/skins/refinery/text_subscript.png +0 -0
- data/public/images/wymeditor/skins/refinery/text_superscript.png +0 -0
- data/public/images/wymeditor/skins/refinery/text_underline.png +0 -0
- data/public/javascripts/jquery/jquery.corner.js +239 -0
- data/public/javascripts/refinery/admin.js +5 -2
- data/public/javascripts/refinery/boot_wym.js +1 -1
- data/public/stylesheets/refinery/refinery.css +30 -116
- data/public/stylesheets/refinery/ui.css +86 -0
- data/public/stylesheets/wymeditor/skins/refinery/skin.css +26 -26
- data/readme.md +2 -2
- data/test/unit/inquiry_test.rb +0 -8
- data/vendor/plugins/acts_as_indexed/CHANGELOG +4 -0
- data/vendor/plugins/acts_as_indexed/README.rdoc +1 -1
- data/vendor/plugins/acts_as_indexed/lib/search_atom.rb +3 -1
- data/vendor/plugins/acts_as_indexed/lib/search_index.rb +1 -1
- data/vendor/plugins/dashboard/app/views/admin/dashboard/_recent_activity.html.erb +1 -1
- data/vendor/plugins/inquiries/app/controllers/admin/inquiries_controller.rb +10 -15
- data/vendor/plugins/inquiries/app/models/inquiry.rb +0 -3
- data/vendor/plugins/inquiries/app/views/admin/inquiries/_inquiry.html.erb +4 -6
- data/vendor/plugins/inquiries/app/views/admin/inquiries/index.html.erb +7 -15
- data/vendor/plugins/inquiries/app/views/admin/inquiries/show.html.erb +0 -1
- data/vendor/plugins/pages/app/controllers/pages_controller.rb +1 -1
- data/vendor/plugins/pages/app/views/admin/pages/_form.html.erb +6 -92
- data/vendor/plugins/pages/app/views/admin/pages/_form_advanced_options.html.erb +56 -0
- data/vendor/plugins/pages/app/views/admin/pages/_form_advanced_options_seo.html.erb +22 -0
- data/vendor/plugins/pages/app/views/admin/pages/_form_new_page_parts.html.erb +13 -0
- data/vendor/plugins/refinery/app/views/admin/_head.html.erb +2 -1
- data/vendor/plugins/refinery/app/views/shared/_menu.html.erb +2 -2
- data/vendor/plugins/refinery/lib/refinery/application_controller.rb +1 -0
- data/vendor/plugins/refinery/lib/refinery/application_helper.rb +44 -15
- data/vendor/plugins/refinery/lib/refinery/html_truncation_helper.rb +19 -17
- metadata +38 -18
- data/contributors.md +0 -20
- data/public/images/wymeditor/skins/refinery/blockquote.png +0 -0
- data/public/images/wymeditor/skins/refinery/css.png +0 -0
- data/public/images/wymeditor/skins/refinery/icons.png +0 -0
@@ -0,0 +1,86 @@
|
|
1
|
+
.ui-dialog #dialog_loading {
|
2
|
+
position: fixed;
|
3
|
+
top: 50%;
|
4
|
+
left: 50%;
|
5
|
+
width: 208px;
|
6
|
+
height: 13px;
|
7
|
+
margin: -6px 0 0 -104px;
|
8
|
+
}
|
9
|
+
|
10
|
+
.ui-widget-overlay {
|
11
|
+
position: absolute;
|
12
|
+
top: 0px;
|
13
|
+
left: 0px;
|
14
|
+
right: 0px;
|
15
|
+
bottom: 0px;
|
16
|
+
width: auto !important;
|
17
|
+
opacity: .75;
|
18
|
+
filter:Alpha(Opacity=75);
|
19
|
+
background: #000;
|
20
|
+
}
|
21
|
+
|
22
|
+
.ui-dialog {
|
23
|
+
position: relative;
|
24
|
+
background-color: #fff;
|
25
|
+
color: #000;
|
26
|
+
border: 4px solid #525252;
|
27
|
+
width: auto;
|
28
|
+
}
|
29
|
+
.ui-dialog .ui-dialog-titlebar {
|
30
|
+
float: left;
|
31
|
+
position: relative;
|
32
|
+
width: 100%;
|
33
|
+
background-color: #e8e8e8;
|
34
|
+
}
|
35
|
+
.ui-dialog .ui-dialog-title {
|
36
|
+
float: left;
|
37
|
+
height: 33px;
|
38
|
+
line-height: 33px;
|
39
|
+
font-size: 16px;
|
40
|
+
padding-left: 10px;
|
41
|
+
}
|
42
|
+
.ui-dialog .ui-dialog-titlebar-close {
|
43
|
+
position: absolute;
|
44
|
+
right: 10px;
|
45
|
+
top: 5px;
|
46
|
+
width: 19px;
|
47
|
+
border: none;
|
48
|
+
}
|
49
|
+
.ui-dialog .ui-dialog-titlebar-close span {
|
50
|
+
display: block;
|
51
|
+
margin: 1px;
|
52
|
+
background: transparent url('/images/thickbox/cross.png') top left no-repeat;
|
53
|
+
text-indent:-10000px;
|
54
|
+
}
|
55
|
+
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus {
|
56
|
+
padding: 0;
|
57
|
+
}
|
58
|
+
|
59
|
+
.ui-tabs-hide {
|
60
|
+
display:none;
|
61
|
+
}
|
62
|
+
.ui-tabs li.ui-state-default {
|
63
|
+
float: left;
|
64
|
+
list-style: none;
|
65
|
+
margin-right: 2px;
|
66
|
+
}
|
67
|
+
.ui-tabs .ui-state-default a {
|
68
|
+
background-color: #c2c3b3;
|
69
|
+
padding: 9px 13px;
|
70
|
+
border-bottom: none;
|
71
|
+
display: block;
|
72
|
+
margin-top: 4px;
|
73
|
+
}
|
74
|
+
.ui-tabs .ui-state-active a {
|
75
|
+
background-color: #808080;
|
76
|
+
color: #fff;
|
77
|
+
padding: 11px 13px;
|
78
|
+
margin-top: 0px;
|
79
|
+
}
|
80
|
+
.ui-dialog iframe {
|
81
|
+
clear:both;
|
82
|
+
border: 0px none;
|
83
|
+
margin-bottom:-1px;
|
84
|
+
margin-top:1px;
|
85
|
+
width: 100% !important;
|
86
|
+
}
|
@@ -74,24 +74,24 @@
|
|
74
74
|
.wym_skin_refinery .wym_buttons li { float:left;}
|
75
75
|
.wym_skin_refinery .wym_buttons a { width: 20px; height: 20px; overflow: hidden; padding: 2px }
|
76
76
|
/*image replacements*/
|
77
|
-
.wym_skin_refinery .wym_buttons li a { background:
|
78
|
-
.wym_skin_refinery .wym_buttons li.wym_tools_strong a { background-
|
79
|
-
.wym_skin_refinery .wym_buttons li.wym_tools_emphasis a { background-
|
80
|
-
.wym_skin_refinery .wym_buttons li.wym_tools_superscript a { background-
|
81
|
-
.wym_skin_refinery .wym_buttons li.wym_tools_subscript a { background-
|
82
|
-
.wym_skin_refinery .wym_buttons li.wym_tools_ordered_list a { background-
|
83
|
-
.wym_skin_refinery .wym_buttons li.wym_tools_unordered_list a{ background-
|
84
|
-
.wym_skin_refinery .wym_buttons li.wym_tools_indent a { background-
|
85
|
-
.wym_skin_refinery .wym_buttons li.wym_tools_outdent a
|
86
|
-
.wym_skin_refinery .wym_buttons li.wym_tools_undo a { background-
|
87
|
-
.wym_skin_refinery .wym_buttons li.wym_tools_redo a { background-
|
88
|
-
.wym_skin_refinery .wym_buttons li.wym_tools_link a { background-
|
89
|
-
.wym_skin_refinery .wym_buttons li.wym_tools_unlink a { background-
|
90
|
-
.wym_skin_refinery .wym_buttons li.wym_tools_image a { background-
|
91
|
-
.wym_skin_refinery .wym_buttons li.wym_tools_table a { background-
|
92
|
-
.wym_skin_refinery .wym_buttons li.wym_tools_paste a { background-
|
93
|
-
.wym_skin_refinery .wym_buttons li.wym_tools_html a { background-
|
94
|
-
.wym_skin_refinery .wym_buttons li.wym_tools_preview a { background-
|
77
|
+
.wym_skin_refinery .wym_buttons li a { text-indent: -9999px;background-repeat: no-repeat;background-position: 4px 4px;}
|
78
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_strong a { background-image: url('/images/wymeditor/skins/refinery/text_bold.png');}
|
79
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_emphasis a { background-image: url('/images/wymeditor/skins/refinery/text_italic.png');}
|
80
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_superscript a { background-image: url('/images/wymeditor/skins/refinery/text_superscript.png');}
|
81
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_subscript a { background-image: url('/images/wymeditor/skins/refinery/text_subscript.png');}
|
82
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_ordered_list a { background-image: url('/images/wymeditor/skins/refinery/text_list_numbers.png');}
|
83
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_unordered_list a{ background-image: url('/images/wymeditor/skins/refinery/text_list_bullets.png');}
|
84
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_indent a { background-image: url('/images/wymeditor/skins/refinery/text_indent.png');}
|
85
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_outdent a { background-image: url('/images/wymeditor/skins/refinery/text_outdent.png');}
|
86
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_undo a { background-image: url('/images/wymeditor/skins/refinery/arrow_undo.png');}
|
87
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_redo a { background-image: url('/images/wymeditor/skins/refinery/arrow_redo.png');}
|
88
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_link a { background-image: url('/images/wymeditor/skins/refinery/link_add.png');}
|
89
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_unlink a { background-image: url('/images/wymeditor/skins/refinery/link_break.png');}
|
90
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_image a { background-image: url('/images/wymeditor/skins/refinery/photo_add.png');}
|
91
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_table a { background-image: url('/images/wymeditor/skins/refinery/table_add.png');}
|
92
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_paste a { background-image: url('/images/wymeditor/skins/refinery/page_paste.png');}
|
93
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_html a { background-image: url('/images/wymeditor/skins/refinery/page_code.png');}
|
94
|
+
.wym_skin_refinery .wym_buttons li.wym_tools_preview a { background-image: url('/images/wymeditor/skins/refinery/eye.png');}
|
95
95
|
|
96
96
|
/* make tools and containers play nicely next to eachother */
|
97
97
|
|
@@ -101,14 +101,14 @@
|
|
101
101
|
.wym_skin_refinery .wym_containers li { float: left; }
|
102
102
|
.wym_skin_refinery .wym_containers li a, .wym_skin_refinery li.wym_tools_class a {background-repeat: no-repeat; background-position: center center;width: 20px; height: 20px; overflow: hidden; padding: 2px; border: 0px none;}
|
103
103
|
|
104
|
-
.wym_skin_refinery li.wym_containers_h1 a { background-image: url('/images/wymeditor/skins/refinery/
|
105
|
-
.wym_skin_refinery li.wym_containers_h2 a { background-image: url('/images/wymeditor/skins/refinery/
|
106
|
-
.wym_skin_refinery li.wym_containers_h3 a { background-image: url('/images/wymeditor/skins/refinery/
|
107
|
-
.wym_skin_refinery li.wym_containers_h4 a { background-image: url('/images/wymeditor/skins/refinery/
|
108
|
-
.wym_skin_refinery li.wym_containers_h5 a { background-image: url('/images/wymeditor/skins/refinery/
|
109
|
-
.wym_skin_refinery li.wym_containers_h6 a { background-image: url('/images/wymeditor/skins/refinery/
|
110
|
-
.wym_skin_refinery li.wym_containers_p a { background-image: url('/images/wymeditor/skins/refinery/
|
111
|
-
.wym_skin_refinery li.wym_tools_class a { background-image: url('/images/wymeditor/skins/refinery/
|
104
|
+
.wym_skin_refinery li.wym_containers_h1 a { background-image: url('/images/wymeditor/skins/refinery/text_heading_1.png'); }
|
105
|
+
.wym_skin_refinery li.wym_containers_h2 a { background-image: url('/images/wymeditor/skins/refinery/text_heading_2.png');}
|
106
|
+
.wym_skin_refinery li.wym_containers_h3 a { background-image: url('/images/wymeditor/skins/refinery/text_heading_3.png');}
|
107
|
+
.wym_skin_refinery li.wym_containers_h4 a { background-image: url('/images/wymeditor/skins/refinery/text_heading_4.png');}
|
108
|
+
.wym_skin_refinery li.wym_containers_h5 a { background-image: url('/images/wymeditor/skins/refinery/text_heading_5.png');}
|
109
|
+
.wym_skin_refinery li.wym_containers_h6 a { background-image: url('/images/wymeditor/skins/refinery/text_heading_6.png');}
|
110
|
+
.wym_skin_refinery li.wym_containers_p a { background-image: url('/images/wymeditor/skins/refinery/text_paragraph.png');}
|
111
|
+
.wym_skin_refinery li.wym_tools_class a { background-image: url('/images/wymeditor/skins/refinery/style.png');}
|
112
112
|
|
113
113
|
/*DECORATION*/
|
114
114
|
.wym_skin_refinery .wym_section h2 { background: #DDD; border: solid gray; border-width: 0 0 1px;}
|
data/readme.md
CHANGED
@@ -65,7 +65,7 @@ After your database exists, you'll need to install the gems that Refinery depend
|
|
65
65
|
|
66
66
|
rake gems:install
|
67
67
|
|
68
|
-
Note: The news engine that was previously in Refinery's core was extracted into a separate gem / plugin to be found here:
|
68
|
+
Note: The news engine that was previously in Refinery's core was extracted into a separate gem / plugin to be found here:
|
69
69
|
|
70
70
|
http://github.com/resolve/refinerycms-news
|
71
71
|
|
@@ -92,7 +92,7 @@ If you're using [Heroku](http://heroku.com/) you will want to put
|
|
92
92
|
|
93
93
|
Refinery.s3_backend = true
|
94
94
|
|
95
|
-
in your ``config/production.rb`` file to make Refinery store files uploaded on Amazon S3.
|
95
|
+
in your ``config/environments/production.rb`` file to make Refinery store files uploaded on Amazon S3.
|
96
96
|
|
97
97
|
## Updating to the latest Refinery
|
98
98
|
|
data/test/unit/inquiry_test.rb
CHANGED
@@ -30,12 +30,4 @@ class InquiryTest < ActiveSupport::TestCase
|
|
30
30
|
assert @full_valid_inquiry.save
|
31
31
|
end
|
32
32
|
|
33
|
-
def test_named_scopes
|
34
|
-
assert_equal 2, Inquiry.open.size
|
35
|
-
assert_equal 1, Inquiry.closed.size
|
36
|
-
|
37
|
-
# check the order. Phil is the newest person to inquire
|
38
|
-
assert_equal inquiries(:phil), Inquiry.open.first
|
39
|
-
end
|
40
|
-
|
41
33
|
end
|
@@ -95,7 +95,7 @@ Pagination is supported via the +paginate_search+ method whose first argument is
|
|
95
95
|
To generate the RDoc documentation, run the <tt>rake rdoc</tt> task in the acts_as_indexed
|
96
96
|
plugin folder. Then point your browser at <tt>/vendor/plugins/acts_as_indexed/rdoc/index.html</tt>.
|
97
97
|
|
98
|
-
Alternatively, you can view the rdoc documentation online[http://
|
98
|
+
Alternatively, you can view the rdoc documentation online[http://rdoc.info/projects/dougal/acts_as_indexed/].
|
99
99
|
|
100
100
|
== Problems, Comments, Suggestions?
|
101
101
|
|
@@ -90,7 +90,9 @@ module Foo #:nodoc:
|
|
90
90
|
end
|
91
91
|
|
92
92
|
# weighting = frequency * log (records.size / records_with_atom)
|
93
|
-
|
93
|
+
## parndt 2010/05/03 changed to records_size.to_f to avoid -Infinity Errno::ERANGE exceptions
|
94
|
+
## which would happen for example Math.log(1 / 20) == -Infinity but Math.log(1.0 / 20) == -2.99573227355399
|
95
|
+
out[r_id] = pos.size * Math.log(records_size.to_f / @records.size)
|
94
96
|
end
|
95
97
|
out
|
96
98
|
end
|
@@ -2,23 +2,18 @@ class Admin::InquiriesController < Admin::BaseController
|
|
2
2
|
|
3
3
|
crudify :inquiry, :title_attribute => "name", :order => "created_at DESC"
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
redirect_to :action => 'index'
|
5
|
+
def index
|
6
|
+
@grouped_inquiries = []
|
7
|
+
|
8
|
+
Inquiry.all.each do |inquiry|
|
9
|
+
key = inquiry.created_at.strftime("%Y-%m-%d")
|
10
|
+
inquiry_group = @grouped_inquiries.collect{|inquiries| inquiries.last if inquiries.first == key }.flatten.compact << inquiry
|
11
|
+
(@grouped_inquiries.delete_if {|i| i.first == key}) << [key, inquiry_group]
|
12
|
+
end
|
14
13
|
end
|
15
14
|
|
16
|
-
|
17
|
-
|
18
|
-
def find_all_inquiries
|
19
|
-
@open_inquiries = Inquiry.open
|
20
|
-
@closed_inquiries = Inquiry.closed
|
21
|
-
@inquiries = @open_inquiries
|
15
|
+
def show
|
16
|
+
find_inquiry
|
22
17
|
end
|
23
18
|
|
24
19
|
end
|
@@ -1,16 +1,14 @@
|
|
1
1
|
<li class='clearfix record <%= cycle("on", "on-hover") %>'>
|
2
2
|
<span class='title'>
|
3
|
-
<%=h
|
4
|
-
<span class="preview"
|
3
|
+
<%= link_to h(inquiry.name), admin_inquiry_url(inquiry) %> said
|
4
|
+
<span class="preview"><%= truncate(strip_tags(inquiry.message), :length => 60) -%></span>
|
5
5
|
|
6
6
|
<span class='actions'>
|
7
|
-
<%= link_to refinery_icon_tag("#{inquiry.open? ? 'accept' : 'arrow_up'}.png"), toggle_status_admin_inquiry_url(inquiry),
|
8
|
-
:title => "Move this inquiry to #{inquiry.open? ? 'closed' : 'open'}" %>
|
9
|
-
<%= link_to refinery_icon_tag('email_open.png'), admin_inquiry_url(inquiry),
|
10
|
-
:title => "Read this inquiry" -%>
|
11
7
|
<%= link_to refinery_icon_tag('delete.png'), admin_inquiry_url(inquiry),
|
12
8
|
:class => "cancel confirm-delete",
|
13
9
|
:title => "Remove this inquiry forever" -%>
|
10
|
+
<%= link_to refinery_icon_tag('zoom.png'), admin_inquiry_url(inquiry),
|
11
|
+
:title => "Read this inquiry" -%>
|
14
12
|
</span>
|
15
13
|
</span>
|
16
14
|
</li>
|
@@ -18,26 +18,18 @@
|
|
18
18
|
<h2>Search Results for "<%= params[:search] %>"</h2>
|
19
19
|
<%= render :partial => "inquiry", :collection => @inquiries %>
|
20
20
|
<% else %>
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
21
|
+
<% if @grouped_inquiries.any? -%>
|
22
|
+
<% @grouped_inquiries.each do |container| %>
|
23
|
+
<h3><%= (inquiry_group = container.last).first.created_at.strftime("%A, %d %B %Y") %></h3>
|
24
|
+
<ul>
|
25
|
+
<%= render :partial => 'inquiry', :collection => inquiry_group %>
|
26
|
+
</ul>
|
27
|
+
<% end %>
|
26
28
|
<% else -%>
|
27
29
|
<p>
|
28
30
|
<%= refinery_icon_tag('accept.png', :style => 'vertical-align: bottom') %>
|
29
31
|
Hooray! There are no open inquiries because you've dealt with them all.
|
30
32
|
</p>
|
31
33
|
<% end -%>
|
32
|
-
<h2>Closed Inquiries</h2>
|
33
|
-
<% if @closed_inquiries.any? -%>
|
34
|
-
<ul>
|
35
|
-
<%= render :partial => "inquiry", :collection => @closed_inquiries %>
|
36
|
-
</ul>
|
37
|
-
<% else -%>
|
38
|
-
<p>
|
39
|
-
You haven't closed any inquiries yet.
|
40
|
-
</p>
|
41
|
-
<% end -%>
|
42
34
|
<% end %>
|
43
35
|
</div>
|
@@ -1,6 +1,5 @@
|
|
1
|
-
<%= error_messages_for :page %>
|
2
|
-
|
3
1
|
<% form_for [:admin, @page] do |f| %>
|
2
|
+
<%= f.error_messages %>
|
4
3
|
<div class="field">
|
5
4
|
<%= f.label :title %>
|
6
5
|
<%= f.text_field :title, :class => "larger", :style => 'width: 954px' %>
|
@@ -35,97 +34,12 @@
|
|
35
34
|
<% end %>
|
36
35
|
</div>
|
37
36
|
</div>
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<div id='more_options' style="display:none;">
|
42
|
-
<div class='field'>
|
43
|
-
<%= f.label :parent_id %>
|
44
|
-
<%= f.collection_select :parent_id, @pages_for_parents_list, :id, :indented_title, :include_blank => true %>
|
45
|
-
</div>
|
46
|
-
<div class='field'>
|
47
|
-
<%= label_tag :custom_title %>
|
48
|
-
<%= label_tag "", 'Type:', :class => "stripped" %>
|
49
|
-
<% ["none", "text"].each do |type| %>
|
50
|
-
<%= f.radio_button :custom_title_type, "#{type}" %>
|
51
|
-
<%= label_tag "page_custom_title_type_#{type}", "#{type.titleize}", :class => "stripped" %>
|
52
|
-
<% end %>
|
53
|
-
<br/>
|
54
|
-
<div id='custom_title_none'></div>
|
55
|
-
<div id='custom_title_text' style='display: <%= @page.custom_title_type == 'text' ? 'block' : 'none' %>'>
|
56
|
-
<p>
|
57
|
-
<%= f.text_field :custom_title, {:size => 103} %><br/>
|
58
|
-
<small>
|
59
|
-
If you want the page to have a different title than the one that shows in the menu and browser title then enter it here.<br/>
|
60
|
-
</small>
|
61
|
-
</p>
|
62
|
-
</div>
|
63
|
-
</div>
|
64
|
-
<div class='field'>
|
65
|
-
<%= label_tag :skip_to_first_child? %>
|
66
|
-
<%= f.check_box :skip_to_first_child %>
|
67
|
-
<%= f.label :skip_to_first_child, "Check this box if you want the visitor to be redirected to this page's first child page if this page is selected.", :class => "stripped" %>
|
68
|
-
</div>
|
69
|
-
<div class='field'>
|
70
|
-
<%= f.label :link_url, "Custom URL" %>
|
71
|
-
<%= f.text_field :link_url, {:size => 103} %><br/>
|
72
|
-
<small>
|
73
|
-
Enter a URL if this page links to an external site or to a pre-existing resource e.g. a contact page.
|
74
|
-
<br/>
|
75
|
-
Note: This URL must point to a location that exists; a new one will not be created.
|
76
|
-
</small>
|
77
|
-
</div>
|
78
|
-
<h2>Search Engine Optimization</h2>
|
79
|
-
<div class='field'>
|
80
|
-
<%= f.label :browser_title %>
|
81
|
-
<%= f.text_field :browser_title, :size => 63 %><br/>
|
82
|
-
<small>
|
83
|
-
If you want to override the default browser title, do it here.
|
84
|
-
</small>
|
85
|
-
</div>
|
86
|
-
<div class='field'>
|
87
|
-
<%= f.label :meta_keywords %>
|
88
|
-
<%= f.text_field :meta_keywords, :size => 63 %><br/>
|
89
|
-
<small>
|
90
|
-
Enter 5-10 keywords that relate to this page. Separate keywords by a comma.
|
91
|
-
</small>
|
92
|
-
</div>
|
93
|
-
<div class='field'>
|
94
|
-
<%= f.label :meta_description %>
|
95
|
-
<%= f.text_area :meta_description, :cols => 95, :rows => 3 %><br/>
|
96
|
-
<small>
|
97
|
-
Enter a concise two or three sentences describing what this page is about.
|
98
|
-
</small>
|
99
|
-
</div>
|
100
|
-
<div class='field'>
|
101
|
-
<%= f.label :show_in_menu %>
|
102
|
-
<%= f.check_box :show_in_menu %>
|
103
|
-
<small>
|
104
|
-
<%= f.label :show_in_menu, "Check this box if this page should appear in the site menu" %>
|
105
|
-
</small>
|
106
|
-
</div>
|
107
|
-
</div>
|
108
|
-
<div class='field'>
|
109
|
-
<label>Draft</label>
|
110
|
-
<%= f.check_box :draft %>
|
111
|
-
<%= f.label :draft, "Save as Draft", :class => "stripped" %>
|
112
|
-
</div>
|
37
|
+
|
38
|
+
<%= render :partial => "form_advanced_options", :locals => {:f => f} %>
|
39
|
+
|
113
40
|
<%= render :partial => "/shared/admin/form_actions", :locals => {:f => f, :continue_editing => true} %>
|
114
|
-
|
115
|
-
|
116
|
-
<div class='field'>
|
117
|
-
<label for='new_page_part_title'>Title</label>
|
118
|
-
<input id='new_page_part_title' value='' class='larger' size='40' />
|
119
|
-
<input id='new_page_part_index' type='hidden' value='<%= @page.parts.size %>' />
|
120
|
-
</div>
|
121
|
-
<%= render :partial => "/shared/admin/form_actions", :locals => {
|
122
|
-
:f => f,
|
123
|
-
:continue_editing => false,
|
124
|
-
:submit_button_id => "new_page_part_save",
|
125
|
-
:cancel_button_id => "new_page_part_cancel"
|
126
|
-
} %>
|
127
|
-
</div>
|
128
|
-
<% end %>
|
41
|
+
|
42
|
+
<%= render :partial => "form_new_page_parts", :locals => {:f => f} if RefinerySetting.find_or_set(:new_page_parts, false) %>
|
129
43
|
<% end %>
|
130
44
|
|
131
45
|
<% content_for :head do %>
|