publinator 0.0.30 → 0.0.31

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,6 +13,10 @@ module Publinator
13
13
  title
14
14
  end
15
15
 
16
+ def publishables
17
+ self.asset_files - self.asset_files('header')
18
+ end
19
+
16
20
  if ThinkingSphinx
17
21
  define_index do
18
22
  indexes title
@@ -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
- <%= render :collection => @publishable.publishables, :partial => "summary" %>
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 %>
@@ -1,3 +1,3 @@
1
1
  module Publinator
2
- VERSION = "0.0.30"
2
+ VERSION = "0.0.31"
3
3
  end
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.30
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: -40028417063270187
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: -40028417063270187
401
+ hash: -3390967978558406967
402
402
  requirements: []
403
403
  rubyforge_project:
404
404
  rubygems_version: 1.8.24