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