Chris@909: <%= link_to 'root', :action => 'show', :id => @project, :path => '', :rev => @rev %> Chris@909: <% Chris@909: dirs = path.split('/') Chris@909: if 'file' == kind Chris@909: filename = dirs.pop Chris@909: end Chris@909: link_path = '' Chris@909: dirs.each do |dir| Chris@909: next if dir.blank? Chris@909: link_path << '/' unless link_path.empty? Chris@909: link_path << "#{dir}" Chris@909: %> Chris@909: / <%= link_to h(dir), :action => 'show', :id => @project, Chris@909: :path => to_path_param(link_path), :rev => @rev %> Chris@909: <% end %> Chris@909: <% if filename %> Chris@909: / <%= link_to h(filename), Chris@909: :action => 'changes', :id => @project, Chris@909: :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %> Chris@909: <% end %> Chris@909: <% Chris@909: # @rev is revsion or Git and Mercurial branch or tag. Chris@909: # For Mercurial *tip*, @rev and @changeset are nil. Chris@909: rev_text = @changeset.nil? ? @rev : format_revision(@changeset) Chris@909: %> Chris@909: <%= "@ #{h rev_text}" unless rev_text.blank? %> Chris@909: Chris@909: <% html_title(with_leading_slash(path)) -%>