publinator 0.0.30 → 0.0.31
Sign up to get free protection for your applications and to get access to all the features.
@@ -19,6 +19,9 @@
|
|
19
19
|
<% if asset_form.object.asset.present? %>
|
20
20
|
<%= link_to(image_tag(asset_form.object.asset.url(:thumb)), asset_form.object.asset.url(:original), :target => "_new") %>
|
21
21
|
<% end %>
|
22
|
+
<% asset_form.object.editable_fields.collect{ |an| an.to_sym }.each do |field| %>
|
23
|
+
<%= asset_form.input field %>
|
24
|
+
<% end %>
|
22
25
|
<%= asset_form.input :asset_type, :as => :select, :collection => @page.asset_types %>
|
23
26
|
<%= asset_form.input :asset, :as => :file %>
|
24
27
|
<% end %>
|
@@ -15,6 +15,9 @@
|
|
15
15
|
<% if asset_form.object.asset.present? %>
|
16
16
|
<%= link_to(image_tag(asset_form.object.asset.url(:thumb)), asset_form.object.asset.url(:original), :target => "_new") %>
|
17
17
|
<% end %>
|
18
|
+
<% asset_form.object.editable_fields.collect{ |an| an.to_sym }.each do |field| %>
|
19
|
+
<%= asset_form.input field %>
|
20
|
+
<% end %>
|
18
21
|
<%= asset_form.input :asset_type, :as => :select, :collection => @publishable.asset_types %>
|
19
22
|
<%= asset_form.input :asset, :as => :file %>
|
20
23
|
<% end %>
|
@@ -1,7 +1,9 @@
|
|
1
1
|
<%= m(@publishable.body) %>
|
2
2
|
|
3
3
|
<% if @publishable.respond_to?(:publishables) %>
|
4
|
-
|
4
|
+
<ol id="documents" type="A">
|
5
|
+
<%= render :collection => @publishable.publishables, :partial => "/object_blocks/#{@publishable.publishables.first.class.to_s.demodulize.underscore}" %>
|
6
|
+
</ol>
|
5
7
|
<% end %>
|
6
8
|
|
7
9
|
<% if @publication.collection_publishable_type_id && @publication.collection %>
|
data/lib/publinator/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: publinator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.31
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -389,7 +389,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
389
389
|
version: '0'
|
390
390
|
segments:
|
391
391
|
- 0
|
392
|
-
hash: -
|
392
|
+
hash: -3390967978558406967
|
393
393
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
394
394
|
none: false
|
395
395
|
requirements:
|
@@ -398,7 +398,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
398
398
|
version: '0'
|
399
399
|
segments:
|
400
400
|
- 0
|
401
|
-
hash: -
|
401
|
+
hash: -3390967978558406967
|
402
402
|
requirements: []
|
403
403
|
rubyforge_project:
|
404
404
|
rubygems_version: 1.8.24
|