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@441: / <%= link_to h(dir), :action => 'show', :id => @project, Chris@441: :path => to_path_param(link_path), :rev => @rev %> Chris@0: <% end %> Chris@0: <% if filename %> Chris@441: / <%= link_to h(filename), Chris@441: :action => 'changes', :id => @project, Chris@441: :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %> Chris@0: <% end %> Chris@441: <% Chris@441: # @rev is revsion or Git and Mercurial branch or tag. Chris@441: # For Mercurial *tip*, @rev and @changeset are nil. Chris@441: rev_text = @changeset.nil? ? @rev : format_revision(@changeset) Chris@441: %> Chris@441: <%= "@ #{h rev_text}" unless rev_text.blank? %> Chris@0: Chris@0: <% html_title(with_leading_slash(path)) -%>