summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-15 22:25:20 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-15 22:25:20 +0000
commit83bb41d3a3d17c65a96e537672fa0c5d97ef1d53 (patch)
tree78d81cc0c216ece3e304870e5f7ef392b67761d1 /app/models
parentabc0b0ea3e520ce1174b687f55c03ac85c128950 (diff)
downloadredmine-83bb41d3a3d17c65a96e537672fa0c5d97ef1d53.tar.gz
redmine-83bb41d3a3d17c65a96e537672fa0c5d97ef1d53.zip
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
Diffstat (limited to 'app/models')
-rw-r--r--app/models/repository.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index aad078c7d..00acbb540 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -112,10 +112,10 @@ class Repository < ActiveRecord::Base
end
def name
- if is_default?
- l(:field_repository_is_default)
- elsif identifier.present?
+ if identifier.present?
identifier
+ elsif is_default?
+ l(:field_repository_is_default)
else
scm_name
end