Merge pull request #370 from cholick/master
File View doesn't work when there's a single subdirectory
This commit is contained in:
@@ -63,11 +63,11 @@ module Gollum
|
|||||||
|
|
||||||
# Handle special case of only one folder.
|
# Handle special case of only one folder.
|
||||||
if (count - folder_start == 1)
|
if (count - folder_start == 1)
|
||||||
path = @pages[ folder_start ]
|
page = @pages[ folder_start ]
|
||||||
name = page.name
|
name = page.name
|
||||||
html += <<-HTML
|
html += <<-HTML
|
||||||
<li>
|
<li>
|
||||||
<label>#{::File.dirname(path)}</label> <input type="checkbox" checked />
|
<label>#{::File.dirname(page.path)}</label> <input type="checkbox" checked />
|
||||||
<ol>
|
<ol>
|
||||||
<li class="file"><a href="#{name}">#{name}</a></li>
|
<li class="file"><a href="#{name}">#{name}</a></li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|||||||
Reference in New Issue
Block a user