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:
parent
1446c9b7f0
commit
d658ab22d6
@ -1,5 +1,7 @@
|
|||||||
<%= link_to(@repository.identifier.present? ? h(@repository.identifier) : 'root',
|
<%= 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('/')
|
dirs = path.split('/')
|
||||||
if 'file' == kind
|
if 'file' == kind
|
||||||
|
@ -67,6 +67,9 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
|
|||||||
assert_tag 'input', :attributes => {:name => 'rev'}
|
assert_tag 'input', :attributes => {:name => 'rev'}
|
||||||
assert_tag 'a', :content => 'Statistics'
|
assert_tag 'a', :content => 'Statistics'
|
||||||
assert_tag 'a', :content => 'Atom'
|
assert_tag 'a', :content => 'Atom'
|
||||||
|
assert_tag :tag => 'a',
|
||||||
|
:attributes => {:href => '/projects/subproject1/repository'},
|
||||||
|
:content => 'root'
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_show_non_default
|
def test_show_non_default
|
||||||
|
Loading…
x
Reference in New Issue
Block a user