Fix href in file view.
This commit is contained in:
@@ -65,7 +65,7 @@ module Gollum
|
||||
if (count - folder_start == 1)
|
||||
page = @pages[ folder_start ]
|
||||
name = page.name
|
||||
url = page.filename_stripped
|
||||
url = ::File.join(::File.dirname(page.path), page.filename_stripped)
|
||||
html += <<-HTML
|
||||
<li>
|
||||
<label>#{::File.dirname(page.path)}</label> <input type="checkbox" checked />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<li>
|
||||
<label>folder0</label> <input type="checkbox" checked />
|
||||
<ol>
|
||||
<li class="file"><a href="0">0</a></li>
|
||||
<li class="file"><a href="folder0/0">0</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
@@ -2,7 +2,7 @@
|
||||
<li>
|
||||
<label>.</label> <input type="checkbox" checked />
|
||||
<ol>
|
||||
<li class="file"><a href="folder0">folder0</a></li>
|
||||
<li class="file"><a href="./folder0">folder0</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
Reference in New Issue
Block a user