Fix href in file view.

This commit is contained in:
bootstraponline
2012-07-27 12:27:16 -06:00
parent 804c4c678d
commit 8fcef5401b
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 />
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -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>