webficient-browsercms 3.0.2 → 3.0.3
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.
- data/app/views/cms/content/show.html.erb +1 -0
- data/app/views/cms/pages/_edit_connector.html.erb +29 -17
- data/app/views/cms/pages/_edit_container.html.erb +13 -10
- data/browsercms.gemspec +3 -3
- data/public/stylesheets/cms/content_editor.css +98 -0
- data/public/stylesheets/cms/page_toolbar.css +92 -79
- metadata +4 -3
@@ -1,4 +1,5 @@
|
|
1
1
|
<% page_title @page.page_title -%>
|
2
|
+
<% content_for :html_head, stylesheet_link_tag('cms/content_editor') -%>
|
2
3
|
<% if @show_toolbar -%>
|
3
4
|
<% flash.keep -%>
|
4
5
|
<iframe src="<%=h cms_toolbar_path(:page_id => @page.id, :page_version => @page.version, :mode => @mode, :page_toolbar => @show_page_toolbar ? 1 : 0) %>" width="100%" height="<%= @show_page_toolbar ? 159 : 100 %>px" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" name="cms_toolbar"></iframe>
|
@@ -1,19 +1,31 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<%= link_to image_tag("cms/pages/show_connectable.gif"
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
<%= image_tag("cms/pages/
|
11
|
-
|
12
|
-
|
1
|
+
<% content_tag :div, :class => 'cms_edit_connectable' do -%>
|
2
|
+
<% content_tag :div, :class => 'toolbar' do -%>
|
3
|
+
<%= link_to image_tag("cms/pages/show_connectable.gif"),
|
4
|
+
cms_connectable_path(connectable),
|
5
|
+
:title => "View this content (#{connectable.name})" %>
|
6
|
+
<%= link_to image_tag("cms/pages/edit_connectable.gif"),
|
7
|
+
edit_cms_connectable_path(connectable, :_redirect_to => @page.path),
|
8
|
+
:title => "Edit this content (#{connectable.name})" %>
|
9
|
+
<% if @page.connectors.for_page_version(@page.version).in_container(connector.container).count > 1 -%>
|
10
|
+
<%= link_to image_tag("cms/pages/up_connectable.gif"),
|
11
|
+
move_up_cms_connector_path(connector),
|
12
|
+
:class => "http_put",
|
13
|
+
:title => "Move this content up (#{connectable.name})" %>
|
14
|
+
<%= link_to image_tag("cms/pages/down_connectable.gif"),
|
15
|
+
move_down_cms_connector_path(connector),
|
16
|
+
:class => "http_put",
|
17
|
+
:title => "Move this content down (#{connectable.name})" %>
|
18
|
+
<% else -%>
|
19
|
+
<%= image_tag("cms/pages/up_connectable_disabled.gif") %>
|
20
|
+
<%= image_tag("cms/pages/down_connectable_disabled.gif") %>
|
21
|
+
<% end -%>
|
22
|
+
<%= link_to image_tag("cms/pages/delete_connectable.gif"),
|
23
|
+
cms_connector_path(connector, :_redirect_to => @page.path),
|
24
|
+
:class => "confirm_with_title http_delete",
|
25
|
+
:title => "Remove this content from page (#{connectable.name}). It will remain available in the Content Library." %>
|
13
26
|
<%= status_icon connector.status,
|
14
27
|
:class => "published_status",
|
15
|
-
:title => connector.live? ? "This content is published and can be seen by site visitors." : "This content is a draft and won't be seen by site visitors until this page is published."
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
</div>
|
28
|
+
:title => connector.live? ? "This content is published and can be seen by site visitors." : "This content is a draft and won't be seen by site visitors until this page is published." %>
|
29
|
+
<% end -%>
|
30
|
+
<%= render_connectable connectable %>
|
31
|
+
<% end %>
|
@@ -1,11 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
<% content_tag :div, :class => 'cms_edit_container' do -%>
|
2
|
+
<% content_tag :div, :class =>'toolbar' do -%>
|
3
|
+
<%= link_to image_tag("cms/pages/add_connectable.gif"),
|
4
|
+
cms_content_types_path(:connect_to_page_id => @page, :connect_to_container => name),
|
5
|
+
:title => "Add new content to this container (#{name})" %>
|
6
|
+
<%= link_to image_tag("cms/pages/connect_connectable.gif"),
|
7
|
+
new_cms_connector_path(:page_id => @page, :container => name),
|
8
|
+
:title => "Insert existing content into this container (#{name})" %>
|
9
|
+
<%= image_tag "cms/#{@page.container_published?(name) ? 'published' : 'draft'}_status.gif",
|
10
|
+
:class => "published_status",
|
11
|
+
:title => @page.container_published?(name) ? "This content is published and can be seen by site visitors." : "This content is a draft and won't be seen by site visitors until this page is published." %>
|
12
|
+
<% end -%>
|
10
13
|
<%= content %>
|
11
|
-
|
14
|
+
<% end -%>
|
data/browsercms.gemspec
CHANGED
@@ -5,12 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{browsercms}
|
8
|
-
s.version = "3.0.
|
8
|
+
s.version = "3.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["BrowserMedia", "Webficient"]
|
12
|
-
s.date = %q{2009-
|
13
|
-
s.description = %q{browsercms}
|
12
|
+
s.date = %q{2009-09-04}
|
14
13
|
s.email = %q{github@browsermedia.com}
|
15
14
|
s.extra_rdoc_files = [
|
16
15
|
"LICENSE.txt",
|
@@ -1190,6 +1189,7 @@ Gem::Specification.new do |s|
|
|
1190
1189
|
"public/stylesheets/cms/application.css",
|
1191
1190
|
"public/stylesheets/cms/block.css",
|
1192
1191
|
"public/stylesheets/cms/buttons.css",
|
1192
|
+
"public/stylesheets/cms/content_editor.css",
|
1193
1193
|
"public/stylesheets/cms/content_library.css",
|
1194
1194
|
"public/stylesheets/cms/content_types.css",
|
1195
1195
|
"public/stylesheets/cms/dashboard.css",
|
@@ -0,0 +1,98 @@
|
|
1
|
+
div.cms_edit_container {
|
2
|
+
height: auto;
|
3
|
+
width: inherit;
|
4
|
+
background: url(/images/cms/containers/alpha.png) repeat-x 0 0;
|
5
|
+
border: 1px solid #999;
|
6
|
+
margin: -8px 0 0 -8px;
|
7
|
+
padding: 24px 7px 1px 7px;
|
8
|
+
position: relative;
|
9
|
+
}
|
10
|
+
|
11
|
+
div.cms_edit_container div.toolbar {
|
12
|
+
display: block;
|
13
|
+
width: 100%;
|
14
|
+
position: absolute;
|
15
|
+
top: 5px;
|
16
|
+
left: 5px;
|
17
|
+
height: 30px;
|
18
|
+
}
|
19
|
+
|
20
|
+
div.cms_edit_container div.toolbar img {
|
21
|
+
text-decoration: none;
|
22
|
+
padding: 0;
|
23
|
+
background: none;
|
24
|
+
margin: 0;
|
25
|
+
float: none;
|
26
|
+
border: none;
|
27
|
+
}
|
28
|
+
|
29
|
+
div.cms_edit_container div.toolbar img.published_status {
|
30
|
+
text-decoration: none;
|
31
|
+
padding: 0 2px 0 0;
|
32
|
+
background: none;
|
33
|
+
margin: 0;
|
34
|
+
float: none;
|
35
|
+
border: none;
|
36
|
+
position: absolute;
|
37
|
+
top: -1px;
|
38
|
+
right: 12px;
|
39
|
+
}
|
40
|
+
|
41
|
+
div.cms_edit_container div.toolbar a {
|
42
|
+
text-decoration: none;
|
43
|
+
padding: 0 2px 0 0;
|
44
|
+
background: none;
|
45
|
+
margin: 0;
|
46
|
+
float: none;
|
47
|
+
border: none;
|
48
|
+
}
|
49
|
+
|
50
|
+
div.cms_edit_connectable {
|
51
|
+
display: block;
|
52
|
+
height: auto;
|
53
|
+
width: inherit;
|
54
|
+
position: relative;
|
55
|
+
border: 1px solid #999;
|
56
|
+
margin: 1px -6px 0 -6px;
|
57
|
+
padding: 25px 5px 0 5px;
|
58
|
+
background: url(/images/cms/containers/beta.png) repeat-x 0 0;
|
59
|
+
}
|
60
|
+
|
61
|
+
div.cms_edit_connectable div.toolbar {
|
62
|
+
display: block;
|
63
|
+
width: 100%;
|
64
|
+
position: absolute;
|
65
|
+
top: 5px;
|
66
|
+
left: 5px;
|
67
|
+
height: 30px;
|
68
|
+
}
|
69
|
+
|
70
|
+
div.cms_edit_connectable div.toolbar img {
|
71
|
+
text-decoration: none;
|
72
|
+
padding: 0;
|
73
|
+
background: none;
|
74
|
+
margin: 0;
|
75
|
+
float: none;
|
76
|
+
border: none;
|
77
|
+
}
|
78
|
+
|
79
|
+
div.cms_edit_connectable div.toolbar img.published_status {
|
80
|
+
text-decoration: none;
|
81
|
+
padding: 0 2px 0 0;
|
82
|
+
background: none;
|
83
|
+
margin: 0;
|
84
|
+
float: none;
|
85
|
+
border: 0;
|
86
|
+
position: absolute;
|
87
|
+
top: -1px;
|
88
|
+
right: 10px;
|
89
|
+
}
|
90
|
+
|
91
|
+
div.cms_edit_connectable div.toolbar a {
|
92
|
+
text-decoration: none;
|
93
|
+
padding: 0 2px 0 0;
|
94
|
+
background: none;
|
95
|
+
margin: 0;
|
96
|
+
float: none;
|
97
|
+
border: none;
|
98
|
+
}
|
@@ -1,135 +1,148 @@
|
|
1
1
|
body {
|
2
|
-
background: #FFF url(/images/cms/toolbar_bg.png) repeat-x 0 0;
|
2
|
+
background: #FFF url(/images/cms/toolbar_bg.png) repeat-x 0 0;
|
3
3
|
}
|
4
|
+
|
4
5
|
#page_toolbar {
|
5
|
-
background: #FFF url(/images/cms/page_toolbar/page_toolbar_bg.gif) repeat-x 0 0;
|
6
|
-
height: 24px;
|
7
|
-
text-transform: uppercase;
|
6
|
+
background: #FFF url(/images/cms/page_toolbar/page_toolbar_bg.gif) repeat-x 0 0;
|
7
|
+
height: 24px;
|
8
|
+
text-transform: uppercase;
|
8
9
|
}
|
9
|
-
.page_attribute_div {
|
10
|
-
float: left;
|
11
|
-
color: #EEE;
|
12
|
-
* font-size: 8pt;
|
13
10
|
|
14
|
-
|
15
|
-
|
11
|
+
.page_attribute_div {
|
12
|
+
float: left;
|
13
|
+
color: #EEE;
|
14
|
+
* font-size: 8pt;
|
15
|
+
height: 24px;
|
16
|
+
padding-right: 8px;
|
16
17
|
}
|
17
18
|
|
18
19
|
#status_div.draft {
|
19
|
-
background: #F00 url(/images/cms/page_toolbar/status_draft_bg.gif) repeat-x 0 0;
|
20
|
+
background: #F00 url(/images/cms/page_toolbar/status_draft_bg.gif) repeat-x 0 0;
|
20
21
|
}
|
22
|
+
|
21
23
|
#status_div.published {
|
22
|
-
background: #888 url(/images/cms/page_toolbar/status_published_bg.gif) repeat-x 0 0;
|
24
|
+
background: #888 url(/images/cms/page_toolbar/status_published_bg.gif) repeat-x 0 0;
|
23
25
|
}
|
26
|
+
|
24
27
|
.page_attribute_div div {
|
25
|
-
padding: 0;
|
28
|
+
padding: 0;
|
26
29
|
}
|
27
30
|
|
28
31
|
.page_attribute_label {
|
29
|
-
float: left;
|
30
|
-
margin-top: 5px;
|
31
|
-
margin-left: 7px;
|
32
|
+
float: left;
|
33
|
+
margin-top: 5px;
|
34
|
+
margin-left: 7px;
|
32
35
|
}
|
33
36
|
|
34
37
|
.page_attribute_value {
|
35
|
-
float: left;
|
36
|
-
margin-top: 2px;
|
37
|
-
margin-right: 5px;
|
38
|
-
margin-left: 4px;
|
38
|
+
float: left;
|
39
|
+
margin-top: 2px;
|
40
|
+
margin-right: 5px;
|
41
|
+
margin-left: 4px;
|
39
42
|
}
|
40
43
|
|
41
44
|
.page_attribute_value_container {
|
42
|
-
margin-top: 4px;
|
43
|
-
margin-left: 4px;
|
44
|
-
float: left;
|
45
|
-
background: #FFF url(/images/cms/page_toolbar/page_toolbar_inset_bg.gif) repeat-x 0 0;
|
45
|
+
margin-top: 4px;
|
46
|
+
margin-left: 4px;
|
47
|
+
float: left;
|
48
|
+
background: #FFF url(/images/cms/page_toolbar/page_toolbar_inset_bg.gif) repeat-x 0 0;
|
46
49
|
}
|
50
|
+
|
47
51
|
.page_attribute_value_container a {
|
48
|
-
color: #EEE;
|
49
|
-
text-decoration: none;
|
52
|
+
color: #EEE;
|
53
|
+
text-decoration: none;
|
50
54
|
}
|
55
|
+
|
51
56
|
.page_attribute_value_container a:hover {
|
52
|
-
color: blue;
|
53
|
-
text-decoration: underline;
|
57
|
+
color: blue;
|
58
|
+
text-decoration: underline;
|
54
59
|
}
|
55
60
|
|
56
|
-
|
57
61
|
#draft_page_status_container {
|
58
|
-
background: #FFF url(/images/cms/page_toolbar/page_toolbar_inset_draft_bg.gif) repeat-x 0 0;
|
62
|
+
background: #FFF url(/images/cms/page_toolbar/page_toolbar_inset_draft_bg.gif) repeat-x 0 0;
|
59
63
|
}
|
64
|
+
|
60
65
|
#published_page_status_container {
|
61
|
-
margin-top: 4px;
|
62
|
-
float: left;
|
63
|
-
background: #FFF url(/images/cms/page_toolbar/page_toolbar_inset_published_bg.gif) repeat-x 0 0;
|
66
|
+
margin-top: 4px;
|
67
|
+
float: left;
|
68
|
+
background: #FFF url(/images/cms/page_toolbar/page_toolbar_inset_published_bg.gif) repeat-x 0 0;
|
64
69
|
}
|
70
|
+
|
65
71
|
.buttons a {
|
66
|
-
* font-size: 8pt;
|
67
|
-
color: #EEE;
|
68
|
-
margin-top: 7px;
|
69
|
-
text-transform: uppercase;
|
72
|
+
* font-size: 8pt;
|
73
|
+
color: #EEE;
|
74
|
+
margin-top: 7px;
|
75
|
+
text-transform: uppercase;
|
70
76
|
}
|
71
|
-
#visual_editor_toggle {
|
72
|
-
float: right;
|
73
|
-
text-transform: uppercase;
|
74
|
-
margin-top: 12px;
|
75
|
-
margin-right: 0px;
|
76
|
-
color: #000;
|
77
|
-
font-weight: bold;
|
78
77
|
|
78
|
+
#visual_editor_toggle {
|
79
|
+
float: right;
|
80
|
+
text-transform: uppercase;
|
81
|
+
margin-top: 12px;
|
82
|
+
margin-right: 0px;
|
83
|
+
color: #000;
|
84
|
+
font-weight: bold;
|
79
85
|
}
|
86
|
+
|
80
87
|
#visual_editor_toggle div {
|
81
|
-
float: left;
|
88
|
+
float: left;
|
82
89
|
}
|
90
|
+
|
83
91
|
.visual_editor_label {
|
84
|
-
margin-right: 5px;
|
85
|
-
margin-top: 6px;
|
92
|
+
margin-right: 5px;
|
93
|
+
margin-top: 6px;
|
86
94
|
}
|
95
|
+
|
87
96
|
.visual_editor_value_container {
|
88
|
-
background: url(/images/cms/page_toolbar/visual_editor_state_bg.gif) no-repeat 0 0;
|
89
|
-
width: 35px;
|
90
|
-
height: 23px;
|
91
|
-
padding: 0;
|
92
|
-
color: #EEE;
|
97
|
+
background: url(/images/cms/page_toolbar/visual_editor_state_bg.gif) no-repeat 0 0;
|
98
|
+
width: 35px;
|
99
|
+
height: 23px;
|
100
|
+
padding: 0;
|
101
|
+
color: #EEE;
|
93
102
|
}
|
103
|
+
|
94
104
|
.visual_editor_toggle_container {
|
95
|
-
height: 20px;
|
96
|
-
padding: 0;
|
97
|
-
margin-left: 4px;
|
98
|
-
margin-top: 1px;
|
105
|
+
height: 20px;
|
106
|
+
padding: 0;
|
107
|
+
margin-left: 4px;
|
108
|
+
margin-top: 1px;
|
99
109
|
}
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
.visual_editor_value_container span{
|
108
|
-
padding-top: 5px;
|
109
|
-
width: 34px;
|
110
|
-
margin: 1px 0 0 0;
|
110
|
+
|
111
|
+
.visual_editor_value_container span, .visual_editor_toggle_container a {
|
112
|
+
display: block;
|
113
|
+
text-align: center;
|
114
|
+
float: left;
|
115
|
+
height: 15px;
|
116
|
+
text-decoration: none;
|
111
117
|
}
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
color: #FFF;
|
118
|
-
text-decoration: none;
|
119
|
-
margin-right: 0px;
|
118
|
+
|
119
|
+
.visual_editor_value_container span {
|
120
|
+
padding-top: 5px;
|
121
|
+
width: 34px;
|
122
|
+
margin: 1px 0 0 0;
|
120
123
|
}
|
121
|
-
|
122
|
-
|
124
|
+
|
125
|
+
.visual_editor_toggle_container a.sm_button {
|
126
|
+
margin: 0;
|
127
|
+
width: 62px;
|
128
|
+
padding: 5px 0 0 0;
|
129
|
+
background: url(/images/cms/buttons/sm_button.gif) no-repeat top right;
|
130
|
+
color: #FFF;
|
131
|
+
text-decoration: none;
|
132
|
+
margin-right: 0px;
|
123
133
|
}
|
124
134
|
|
135
|
+
.visual_editor_toggle_container a.sm_button span {
|
136
|
+
padding-left: 2px;
|
137
|
+
}
|
125
138
|
|
126
139
|
.visual_editor_toggle_container a.sm_button:hover {
|
127
|
-
|
140
|
+
background: url(/images/cms/buttons/sm_button_h.gif) no-repeat top right;
|
128
141
|
}
|
129
142
|
|
130
143
|
.buttons .publish_button {
|
131
144
|
}
|
132
145
|
|
133
146
|
.spacer {
|
134
|
-
margin-left: 3px;
|
147
|
+
margin-left: 3px;
|
135
148
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webficient-browsercms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BrowserMedia
|
@@ -10,11 +10,11 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-
|
13
|
+
date: 2009-09-04 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|
17
|
-
description:
|
17
|
+
description:
|
18
18
|
email: github@browsermedia.com
|
19
19
|
executables: []
|
20
20
|
|
@@ -1197,6 +1197,7 @@ files:
|
|
1197
1197
|
- public/stylesheets/cms/application.css
|
1198
1198
|
- public/stylesheets/cms/block.css
|
1199
1199
|
- public/stylesheets/cms/buttons.css
|
1200
|
+
- public/stylesheets/cms/content_editor.css
|
1200
1201
|
- public/stylesheets/cms/content_library.css
|
1201
1202
|
- public/stylesheets/cms/content_types.css
|
1202
1203
|
- public/stylesheets/cms/dashboard.css
|