<%#-- copyright OpenProject is a project management system. Copyright (C) 2012-2013 the OpenProject Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. See doc/COPYRIGHT.rdoc for more details. ++#%> <%= link_to 'root', :action => 'show', :id => @project, :path => '', :rev => @rev %> <% dirs = path.split('/') if 'file' == kind filename = dirs.pop end link_path = '' dirs.each do |dir| next if dir.blank? link_path << '/' unless link_path.empty? link_path << "#{dir}" %> / <%= link_to h(dir), :action => 'show', :id => @project, :path => to_path_param(link_path), :rev => @rev %> <% end %> <% if filename %> / <%= link_to h(filename), :action => 'changes', :id => @project, :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %> <% end %> <% # @rev is revsion or git branch or tag. rev_text = @changeset.nil? ? @rev : format_revision(@changeset) %> <%= "@ #{h rev_text}" unless rev_text.blank? %> <% html_title(h(with_leading_slash(path))) -%>