diff --git a/app/views/repositories/_breadcrumbs.html.erb b/app/views/repositories/_breadcrumbs.html.erb index d0fdf2a..de3001e 100644 --- a/app/views/repositories/_breadcrumbs.html.erb +++ b/app/views/repositories/_breadcrumbs.html.erb @@ -1,5 +1,5 @@ <%= link_to 'root', :action => 'show', :id => @project, :path => '', :rev => @rev %> -<% +<% dirs = path.split('/') if 'file' == kind filename = dirs.pop @@ -8,7 +8,7 @@ link_path = '' dirs.each do |dir| next if dir.blank? link_path << '/' unless link_path.empty? - link_path << "#{dir}" + link_path << "#{dir}" %> / <%= link_to h(dir), :action => 'show', :id => @project, :path => to_path_param(link_path), :rev => @rev %>