Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed backwards compatibility with Guides Index that was broken in 0.6.9

  • Loading branch information...
commit 1b4bc6c3172efceaf232660761ad4084d5fc6d7f 1 parent e706ca6
@wagenet wagenet authored
View
12 lib/guides/generator.rb
@@ -219,7 +219,17 @@ def set_index(body, view, processor)
index << view.content_tag(:li, link.html_safe + children_ul.html_safe)
end
- view.content_for(:index_section) { index.html_safe }
+ index_section = <<-INDEX
+ <div id="subCol">
+ <h3 class="chapter"><img src="images/chapters_icon.gif" alt="" />Chapters</h3>
+ <ol class="chapters">
+ #{index}
+ </ol>
+ </div>
+ INDEX
+
+ view.content_for(:index_items) { index.html_safe }
+ view.content_for(:index_section) { index_section.html_safe }
i.result
end
View
4 lib/guides/templates/source/layout.html.erb
@@ -56,7 +56,9 @@
<% end %>
<div id="subCol">
<h3 class="chapter"><img src="images/chapters_icon.gif" alt="" />Chapters</h3>
- <ol class="chapters"><%= yield(:index_section) %></ol>
+ <ol class="chapters">
+ <%= yield(:index_items) %>
+ </ol>
</div>
</div>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.