comparison app/views/repositories/_breadcrumbs.html.erb @ 909:cbb26bc654de redmine-1.3

Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author Chris Cannam
date Fri, 24 Feb 2012 19:09:32 +0000
parents c6c2cbd0afee
children 433d4f72a19b
comparison
equal deleted inserted replaced
908:c6c2cbd0afee 909:cbb26bc654de
1 <%= link_to 'root', :action => 'show', :id => @project, :path => '', :rev => @rev %> 1 <%= link_to 'root', :action => 'show', :id => @project, :path => '', :rev => @rev %>
2 <% 2 <%
3 dirs = path.split('/') 3 dirs = path.split('/')
4 if 'file' == kind 4 if 'file' == kind
5 filename = dirs.pop 5 filename = dirs.pop
6 end 6 end
7 link_path = '' 7 link_path = ''
8 dirs.each do |dir| 8 dirs.each do |dir|
9 next if dir.blank? 9 next if dir.blank?
10 link_path << '/' unless link_path.empty? 10 link_path << '/' unless link_path.empty?
11 link_path << "#{dir}" 11 link_path << "#{dir}"
12 %> 12 %>
13 / <%= link_to h(dir), :action => 'show', :id => @project, 13 / <%= link_to h(dir), :action => 'show', :id => @project,
14 :path => to_path_param(link_path), :rev => @rev %> 14 :path => to_path_param(link_path), :rev => @rev %>
15 <% end %> 15 <% end %>
16 <% if filename %> 16 <% if filename %>