##// END OF EJS Templates
remove trailing white-space from app/views/repositories/_breadcrumbs.html.erb...
Toshi MARUYAMA -
r11669:54478d1e08f7
parent child
Show More
@@ -1,31 +1,31
1 <%= link_to(@repository.identifier.present? ? h(@repository.identifier) : 'root',
1 <%= link_to(@repository.identifier.present? ? h(@repository.identifier) : 'root',
2 2 :action => 'show', :id => @project,
3 3 :repository_id => @repository.identifier_param,
4 4 :path => nil, :rev => @rev) %>
5 5 <%
6 6 dirs = path.split('/')
7 7 if 'file' == kind
8 8 filename = dirs.pop
9 9 end
10 10 link_path = ''
11 11 dirs.each do |dir|
12 12 next if dir.blank?
13 13 link_path << '/' unless link_path.empty?
14 14 link_path << "#{dir}"
15 15 %>
16 16 / <%= link_to h(dir), :action => 'show', :id => @project, :repository_id => @repository.identifier_param,
17 17 :path => to_path_param(link_path), :rev => @rev %>
18 18 <% end %>
19 19 <% if filename %>
20 20 / <%= link_to h(filename),
21 21 :action => 'changes', :id => @project, :repository_id => @repository.identifier_param,
22 22 :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %>
23 23 <% end %>
24 24 <%
25 25 # @rev is revsion or Git and Mercurial branch or tag.
26 26 # For Mercurial *tip*, @rev and @changeset are nil.
27 27 rev_text = @changeset.nil? ? @rev : format_revision(@changeset)
28 28 %>
29 29 <%= "@ #{h rev_text}" unless rev_text.blank? %>
30 30
31 31 <% html_title(with_leading_slash(path)) -%>
General Comments 0
You need to be logged in to leave comments. Login now