Mercurial > hg > soundsoftware-site
diff app/views/repositories/_breadcrumbs.html.erb @ 1115:433d4f72a19b redmine-2.2
Update to Redmine SVN revision 11137 on 2.2-stable branch
author | Chris Cannam |
---|---|
date | Mon, 07 Jan 2013 12:01:42 +0000 |
parents | cbb26bc654de |
children | 261b3d9a4903 |
line wrap: on
line diff
--- a/app/views/repositories/_breadcrumbs.html.erb Wed Jun 27 14:54:18 2012 +0100 +++ b/app/views/repositories/_breadcrumbs.html.erb Mon Jan 07 12:01:42 2013 +0000 @@ -1,4 +1,7 @@ -<%= link_to 'root', :action => 'show', :id => @project, :path => '', :rev => @rev %> +<%= link_to(@repository.identifier.present? ? h(@repository.identifier) : 'root', + :action => 'show', :id => @project, + :repository_id => @repository.identifier_param, + :path => nil, :rev => @rev) %> <% dirs = path.split('/') if 'file' == kind @@ -10,12 +13,12 @@ link_path << '/' unless link_path.empty? link_path << "#{dir}" %> - / <%= link_to h(dir), :action => 'show', :id => @project, + / <%= link_to h(dir), :action => 'show', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(link_path), :rev => @rev %> <% end %> <% if filename %> / <%= link_to h(filename), - :action => 'changes', :id => @project, + :action => 'changes', :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %> <% end %> <%