acts_as_content_node 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/acts_as_content_node.gemspec +2 -2
- data/app/views/content_nodes/_publish_select.html.erb +7 -5
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.10
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{acts_as_content_node}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.10"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Steve England"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2010-01-27}
|
13
13
|
s.description = %q{Common functions for a record used as content of a website. Generator for cms and front end.}
|
14
14
|
s.email = %q{steve@wearebeef.co.uk}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -2,13 +2,15 @@
|
|
2
2
|
<legend>Publishing Options</legend>
|
3
3
|
<p>
|
4
4
|
<%= f.label :published_at, "Publish at" %><br/>
|
5
|
-
<%= check_box_tag 'published_at', true,
|
6
|
-
|
5
|
+
<%= check_box_tag 'published_at', true, f.object.published?, :onclick => 'toggle_published_at(this.checked)', :id => 'live-from' %>
|
6
|
+
<%= f.hidden_field :published_at, :value => '' %>
|
7
|
+
<span id="published_at"><%= f.datetime_select :published_at, :disabled => f.object.published? ? nil : 'disabled' %></span>
|
7
8
|
</p>
|
8
9
|
|
9
10
|
<p>
|
10
|
-
<%= f.label :published_to, "Publish till" %><br/>
|
11
|
-
<%= check_box_tag 'published_to', true,
|
12
|
-
|
11
|
+
<%= f.label :published_to, "Publish till" %><br/>
|
12
|
+
<%= check_box_tag 'published_to', true, !f.object.published_to.blank?, :onclick => 'toggle_published_to(this.checked)', :id => 'live-to' %>
|
13
|
+
<%= f.hidden_field :published_to, :value => '' %>
|
14
|
+
<span id="published_to"><%= f.datetime_select :published_to, :disabled => f.object.published_to.blank? ? 'disabled' : nil %></span>
|
13
15
|
</p>
|
14
16
|
</fieldset>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_content_node
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve England
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-27 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|