scm: fix broken main repository 'root' link

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9613 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-05-02 15:58:03 +00:00
parent 1446c9b7f0
commit d658ab22d6
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,7 @@
<%= link_to(@repository.identifier.present? ? h(@repository.identifier) : 'root',
:action => 'show', :id => @project, :repository_id => @repository.identifier_param, :path => '', :rev => @rev) %>
:action => 'show', :id => @project,
:repository_id => @repository.identifier_param,
:path => nil, :rev => @rev) %>
<%
dirs = path.split('/')
if 'file' == kind

View File

@ -67,6 +67,9 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
assert_tag 'input', :attributes => {:name => 'rev'}
assert_tag 'a', :content => 'Statistics'
assert_tag 'a', :content => 'Atom'
assert_tag :tag => 'a',
:attributes => {:href => '/projects/subproject1/repository'},
:content => 'root'
end
def test_show_non_default