##// END OF EJS Templates
Reverted r9368....
Reverted r9368. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9370 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r8536:276e647779f3
r9236:d427d8e5675c
Show More
_breadcrumbs.html.erb
29 lines | 1.1 KiB | text/plain | TextLexer
/ app / views / repositories / _breadcrumbs.html.erb
Jean-Philippe Lang
Display repository identifier in breadcrumbs (#779)....
r8536 <%= link_to(@repository.identifier.present? ? h(@repository.identifier) : 'root',
:action => 'show', :id => @project, :repository_id => @repository.identifier_param, :path => '', :rev => @rev) %>
Toshi MARUYAMA
remove trailing white-spaces from app/views/repositories/_breadcrumbs.html.erb...
r7146 <%
Eric Davis
Added branch and tag support to the git repository viewer. (#1406)...
r2735 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?
Toshi MARUYAMA
remove trailing white-spaces from app/views/repositories/_breadcrumbs.html.erb...
r7146 link_path << "#{dir}"
Eric Davis
Added branch and tag support to the git repository viewer. (#1406)...
r2735 %>
Jean-Philippe Lang
Adds support for multiple repositories per project (#779)....
r8530 / <%= link_to h(dir), :action => 'show', :id => @project, :repository_id => @repository.identifier_param,
Toshi MARUYAMA
scm: recovery showing "root @ branch" in repository tree viewing....
r5019 :path => to_path_param(link_path), :rev => @rev %>
Eric Davis
Added branch and tag support to the git repository viewer. (#1406)...
r2735 <% end %>
<% if filename %>
Toshi MARUYAMA
scm: recovery showing "root @ branch" in repository tree viewing....
r5019 / <%= link_to h(filename),
Jean-Philippe Lang
Adds support for multiple repositories per project (#779)....
r8530 :action => 'changes', :id => @project, :repository_id => @repository.identifier_param,
Toshi MARUYAMA
scm: recovery showing "root @ branch" in repository tree viewing....
r5019 :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %>
Eric Davis
Added branch and tag support to the git repository viewer. (#1406)...
r2735 <% end %>
Toshi MARUYAMA
scm: recovery showing "root @ branch" in repository tree viewing....
r5019 <%
# @rev is revsion or Git and Mercurial branch or tag.
# For Mercurial *tip*, @rev and @changeset are nil.
rev_text = @changeset.nil? ? @rev : format_revision(@changeset)
%>
Toshi MARUYAMA
scm: use blank? for "root @ branch" in repository tree viewing....
r5027 <%= "@ #{h rev_text}" unless rev_text.blank? %>
Eric Davis
Added branch and tag support to the git repository viewer. (#1406)...
r2735
Etienne Massip
Remove unecessary page title HTML escaping from views (#9252)....
r7445 <% html_title(with_leading_slash(path)) -%>