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