Refactored the template generator to use new_page method

This commit is contained in:
Daniel Kimsey
2012-11-08 18:49:29 -05:00
committed by bootstraponline
parent bd072264ef
commit 34e0b49d72
+1 -3
View File
@@ -85,13 +85,11 @@ module Gollum
# Handle special case of only one folder.
if (count - folder_start == 1)
page = @pages[ folder_start ]
name = page.name
url = url_for_page page
html += <<-HTML
<li>
<label>#{::File.dirname(page.path)}</label> <input type="checkbox" #{@checked} />
<ol>
<li class="file"><a href="#{url}">#{name}</a></li>
#{new_page page}
</ol>
</li>
HTML