radiant-backend_archive_view-extension 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,5 +38,7 @@
38
38
  :style => 'display: none;')
39
39
  - else
40
40
  = render_nodes page.tree_children, :level => level + 1, :simple => simple
41
+ - page.children.select{|c| c.class_name =~ /Archive(.*)IndexPage/}.each do |archive_index|
42
+ = render_node archive_index, :level => level + 1, :simple => simple
41
43
  - else
42
44
  = render_nodes page.children, :level => level + 1, :simple => simple
@@ -46,6 +46,9 @@
46
46
  :style => 'display: none;')
47
47
  - else
48
48
  = render_nodes page.tree_children, :level => level + 1, :simple => simple
49
+ - page.children.select{|c| c.class_name =~ /Archive(.*)IndexPage/}.each do |archive_index|
50
+ = render_node archive_index, :level => level + 1, :simple => simple
51
+
49
52
  - else
50
53
  = render_nodes page.children, :level => level + 1, :simple => simple
51
54
 
@@ -1,6 +1,8 @@
1
1
  - if @offset.nil? || @offset < 12
2
2
  - if @parent.respond_to?(:tree_children)
3
3
  = render_nodes @parent.tree_children[0...12], :level => @level + 1
4
+ - @parent.children.select{|c| c.class_name =~ /Archive(.*)IndexPage/}.each do |archive_index|
5
+ = render_node archive_index, :level => @level + 1
4
6
  - if @parent.tree_children.size > 12
5
7
  %tr{:class => "level_#{@level + 1} node_fetcher"}
6
8
  %td.nodes_fetcher{:style => "padding-left: #{padding_left(@level)}px; text-align: center", :colspan => 5}
@@ -1,5 +1,5 @@
1
1
  module RadiantBackendArchiveViewExtension
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  SUMMARY = %q{Backend Archive View for Radiant CMS}
4
4
  DESCRIPTION = %q{Helps organize ArchivePages with many children.}
5
5
  URL = "https://github.com/jomz/radiant-backend_archive_view-extension"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-backend_archive_view-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Benny Degezelle
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-24 00:00:00 +01:00
18
+ date: 2012-08-17 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency