summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-15 23:09:15 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-15 23:09:15 +0000
commit276e647779f3e90574d87ae4d25a46330dad6a81 (patch)
tree3b5fdfad2e962386adc1bc89a9f02e63750dca95
parentc102fa6cac4d261c0f7083cb43d1ccbe6374bf91 (diff)
downloadredmine-276e647779f3e90574d87ae4d25a46330dad6a81.tar.gz
redmine-276e647779f3e90574d87ae4d25a46330dad6a81.zip
Display repository identifier in breadcrumbs (#779).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8656 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/repositories/_breadcrumbs.html.erb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/repositories/_breadcrumbs.html.erb b/app/views/repositories/_breadcrumbs.html.erb
index 1a610ff6c..233416477 100644
--- a/app/views/repositories/_breadcrumbs.html.erb
+++ b/app/views/repositories/_breadcrumbs.html.erb
@@ -1,4 +1,5 @@
-<%= link_to 'root', :action => 'show', :id => @project, :repository_id => @repository.identifier_param, :path => '', :rev => @rev %>
+<%= link_to(@repository.identifier.present? ? h(@repository.identifier) : 'root',
+ :action => 'show', :id => @project, :repository_id => @repository.identifier_param, :path => '', :rev => @rev) %>
<%
dirs = path.split('/')
if 'file' == kind