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