##// 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 :action => 'show', :id => @project,
2 :action => 'show', :id => @project,
3 :repository_id => @repository.identifier_param,
3 :repository_id => @repository.identifier_param,
4 :path => nil, :rev => @rev) %>
4 :path => nil, :rev => @rev) %>
5 <%
5 <%
6 dirs = path.split('/')
6 dirs = path.split('/')
7 if 'file' == kind
7 if 'file' == kind
8 filename = dirs.pop
8 filename = dirs.pop
9 end
9 end
10 link_path = ''
10 link_path = ''
11 dirs.each do |dir|
11 dirs.each do |dir|
12 next if dir.blank?
12 next if dir.blank?
13 link_path << '/' unless link_path.empty?
13 link_path << '/' unless link_path.empty?
14 link_path << "#{dir}"
14 link_path << "#{dir}"
15 %>
15 %>
16 / <%= link_to h(dir), :action => 'show', :id => @project, :repository_id => @repository.identifier_param,
16 / <%= link_to h(dir), :action => 'show', :id => @project, :repository_id => @repository.identifier_param,
17 :path => to_path_param(link_path), :rev => @rev %>
17 :path => to_path_param(link_path), :rev => @rev %>
18 <% end %>
18 <% end %>
19 <% if filename %>
19 <% if filename %>
20 / <%= link_to h(filename),
20 / <%= link_to h(filename),
21 :action => 'changes', :id => @project, :repository_id => @repository.identifier_param,
21 :action => 'changes', :id => @project, :repository_id => @repository.identifier_param,
22 :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %>
22 :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %>
23 <% end %>
23 <% end %>
24 <%
24 <%
25 # @rev is revsion or Git and Mercurial branch or tag.
25 # @rev is revsion or Git and Mercurial branch or tag.
26 # For Mercurial *tip*, @rev and @changeset are nil.
26 # For Mercurial *tip*, @rev and @changeset are nil.
27 rev_text = @changeset.nil? ? @rev : format_revision(@changeset)
27 rev_text = @changeset.nil? ? @rev : format_revision(@changeset)
28 %>
28 %>
29 <%= "@ #{h rev_text}" unless rev_text.blank? %>
29 <%= "@ #{h rev_text}" unless rev_text.blank? %>
30
30
31 <% html_title(with_leading_slash(path)) -%>
31 <% html_title(with_leading_slash(path)) -%>
General Comments 0
You need to be logged in to leave comments. Login now