summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-05-02 15:58:03 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-05-02 15:58:03 +0000
commitd658ab22d60edae6593ed0b1ed65bbe82225b77a (patch)
treea4b9503d07e2a3f511a8a3f1379e88a8cb8762fa
parent1446c9b7f00109d31a48aa1ed8aea44a8db5e9f6 (diff)
downloadredmine-d658ab22d60edae6593ed0b1ed65bbe82225b77a.tar.gz
redmine-d658ab22d60edae6593ed0b1ed65bbe82225b77a.zip
scm: fix broken main repository 'root' link
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9613 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/repositories/_breadcrumbs.html.erb4
-rw-r--r--test/functional/repositories_subversion_controller_test.rb3
2 files changed, 6 insertions, 1 deletions
diff --git a/app/views/repositories/_breadcrumbs.html.erb b/app/views/repositories/_breadcrumbs.html.erb
index 233416477..86fe28cb5 100644
--- a/app/views/repositories/_breadcrumbs.html.erb
+++ b/app/views/repositories/_breadcrumbs.html.erb
@@ -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
diff --git a/test/functional/repositories_subversion_controller_test.rb b/test/functional/repositories_subversion_controller_test.rb
index 4e9bde9d2..188dd2fd8 100644
--- a/test/functional/repositories_subversion_controller_test.rb
+++ b/test/functional/repositories_subversion_controller_test.rb
@@ -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