##// END OF EJS Templates
scm: fix broken main repository 'root' link...
Toshi MARUYAMA -
r9430:d658ab22d60e
parent child
Show More
@@ -1,5 +1,7
1 <%= link_to(@repository.identifier.present? ? h(@repository.identifier) : 'root',
1 <%= link_to(@repository.identifier.present? ? h(@repository.identifier) : 'root',
2 :action => 'show', :id => @project, :repository_id => @repository.identifier_param, :path => '', :rev => @rev) %>
2 :action => 'show', :id => @project,
3 :repository_id => @repository.identifier_param,
4 :path => nil, :rev => @rev) %>
3 <%
5 <%
4 dirs = path.split('/')
6 dirs = path.split('/')
5 if 'file' == kind
7 if 'file' == kind
@@ -67,6 +67,9 class RepositoriesSubversionControllerTest < ActionController::TestCase
67 assert_tag 'input', :attributes => {:name => 'rev'}
67 assert_tag 'input', :attributes => {:name => 'rev'}
68 assert_tag 'a', :content => 'Statistics'
68 assert_tag 'a', :content => 'Statistics'
69 assert_tag 'a', :content => 'Atom'
69 assert_tag 'a', :content => 'Atom'
70 assert_tag :tag => 'a',
71 :attributes => {:href => '/projects/subproject1/repository'},
72 :content => 'root'
70 end
73 end
71
74
72 def test_show_non_default
75 def test_show_non_default
General Comments 0
You need to be logged in to leave comments. Login now