Chris@0: <%= link_to 'root', :action => 'show', :id => @project, :path => '', :rev => @rev %> Chris@0: <% Chris@0: dirs = path.split('/') Chris@0: if 'file' == kind Chris@0: filename = dirs.pop Chris@0: end Chris@0: link_path = '' Chris@0: dirs.each do |dir| Chris@0: next if dir.blank? Chris@0: link_path << '/' unless link_path.empty? Chris@0: link_path << "#{dir}" Chris@0: %> Chris@0: / <%= link_to h(dir), :action => 'show', :id => @project, :path => to_path_param(link_path), :rev => @rev %> Chris@0: <% end %> Chris@0: <% if filename %> Chris@0: / <%= link_to h(filename), :action => 'changes', :id => @project, :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %> Chris@0: <% end %> Chris@0: Chris@0: <%= "@ #{h revision}" if revision %> Chris@0: Chris@0: <% html_title(with_leading_slash(path)) -%>