publinator 0.0.15 → 0.0.16
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.
@@ -62,7 +62,7 @@ module Publinator
|
|
62
62
|
div_contents += content_tag(:ul) do
|
63
63
|
next_contents = ""
|
64
64
|
object.each do |o|
|
65
|
-
next_contents += li_tag(o)
|
65
|
+
next_contents += li_tag(o) unless o.respond_to?(:hide_in_submenu) && o.hide_in_submenu
|
66
66
|
end
|
67
67
|
next_contents.html_safe
|
68
68
|
end
|
@@ -23,6 +23,7 @@
|
|
23
23
|
<%= pub.input :publish_at, :as => :datetime_select, :required => false %>
|
24
24
|
<%= pub.input :unpublish_at, :as => :datetime_select, :required => false %>
|
25
25
|
<%= pub.input :archive_at, :as => :datetime_select, :required => false %>
|
26
|
+
<%= pub.input :hide_in_nav, :required => false %>
|
26
27
|
<%= pub.input :section, :as => :select, :required => false, :collection => current_site.sections unless current_site.sections.length == 0 %>
|
27
28
|
<% end %>
|
28
29
|
<% end %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= link_to summary.title, summary.path %><br>
|
1
|
+
<%= link_to summary.title.html_safe, summary.path %><br>
|
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.16
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -324,6 +324,7 @@ files:
|
|
324
324
|
- db/migrate/20121011191348_create_publinator_sections.rb
|
325
325
|
- db/migrate/20121017134533_create_publinator_pages.rb
|
326
326
|
- db/migrate/20121020181204_create_publinator_asset_items.rb
|
327
|
+
- db/migrate/20121023224457_add_show_in_nav.rb
|
327
328
|
- lib/generators/publishable/publishable_generator.rb
|
328
329
|
- lib/generators/publishable/templates/app/models/publishable.html.erb
|
329
330
|
- lib/generators/publishable/templates/app/models/publishable_migration.rb.erb
|
@@ -350,7 +351,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
350
351
|
version: '0'
|
351
352
|
segments:
|
352
353
|
- 0
|
353
|
-
hash:
|
354
|
+
hash: 2434480295581327704
|
354
355
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
355
356
|
none: false
|
356
357
|
requirements:
|
@@ -359,7 +360,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
359
360
|
version: '0'
|
360
361
|
segments:
|
361
362
|
- 0
|
362
|
-
hash:
|
363
|
+
hash: 2434480295581327704
|
363
364
|
requirements: []
|
364
365
|
rubyforge_project:
|
365
366
|
rubygems_version: 1.8.24
|