Display identifier for the default repository too (#779).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8654 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-01-15 22:25:20 +00:00
parent abc0b0ea3e
commit 83bb41d3a3
1 changed files with 3 additions and 3 deletions

View File

@ -112,10 +112,10 @@ class Repository < ActiveRecord::Base
end end
def name def name
if is_default? if identifier.present?
l(:field_repository_is_default)
elsif identifier.present?
identifier identifier
elsif is_default?
l(:field_repository_is_default)
else else
scm_name scm_name
end end