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) if (count - folder_start == 1)
page = @pages[ folder_start ] page = @pages[ folder_start ]
name = page.name name = page.name
url = page.filename_stripped url = ::File.join(::File.dirname(page.path), page.filename_stripped)
html += <<-HTML html += <<-HTML
<li> <li>
<label>#{::File.dirname(page.path)}</label> <input type="checkbox" checked /> <label>#{::File.dirname(page.path)}</label> <input type="checkbox" checked />
+1 -1
View File
@@ -2,7 +2,7 @@
<li> <li>
<label>folder0</label> <input type="checkbox" checked /> <label>folder0</label> <input type="checkbox" checked />
<ol> <ol>
<li class="file"><a href="0">0</a></li> <li class="file"><a href="folder0/0">0</a></li>
</ol> </ol>
</li> </li>
</ol> </ol>
+1 -1
View File
@@ -2,7 +2,7 @@
<li> <li>
<label>.</label> <input type="checkbox" checked /> <label>.</label> <input type="checkbox" checked />
<ol> <ol>
<li class="file"><a href="folder0">folder0</a></li> <li class="file"><a href="./folder0">folder0</a></li>
</ol> </ol>
</li> </li>
</ol> </ol>