@@ -1,21 +1,21 | |||||
1 | <%= link_to 'root', :action => 'show', :id => @project, :path => '', :rev => @rev %> |
|
1 | <%= link_to 'root', :action => 'show', :id => @project, :path => '', :rev => @rev %> | |
2 | <% |
|
2 | <% | |
3 | dirs = path.split('/') |
|
3 | dirs = path.split('/') | |
4 | if 'file' == kind |
|
4 | if 'file' == kind | |
5 | filename = dirs.pop |
|
5 | filename = dirs.pop | |
6 | end |
|
6 | end | |
7 | link_path = '' |
|
7 | link_path = '' | |
8 | dirs.each do |dir| |
|
8 | dirs.each do |dir| | |
9 | next if dir.blank? |
|
9 | next if dir.blank? | |
10 | link_path << '/' unless link_path.empty? |
|
10 | link_path << '/' unless link_path.empty? | |
11 | link_path << "#{dir}" |
|
11 | link_path << "#{dir}" | |
12 | %> |
|
12 | %> | |
13 | / <%= link_to h(dir), :action => 'show', :id => @project, :path => to_path_param(link_path), :rev => @rev %> |
|
13 | / <%= link_to h(dir), :action => 'show', :id => @project, :path => to_path_param(link_path), :rev => @rev %> | |
14 | <% end %> |
|
14 | <% end %> | |
15 | <% if filename %> |
|
15 | <% if filename %> | |
16 | / <%= link_to h(filename), :action => 'changes', :id => @project, :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %> |
|
16 | / <%= link_to h(filename), :action => 'changes', :id => @project, :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %> | |
17 | <% end %> |
|
17 | <% end %> | |
18 |
|
18 | |||
19 | <%= "@ #{revision}" if revision %> |
|
19 | <%= "@ #{h revision}" if revision %> | |
20 |
|
20 | |||
21 | <% html_title(with_leading_slash(path)) -%> |
|
21 | <% html_title(with_leading_slash(path)) -%> |
General Comments 0
You need to be logged in to leave comments.
Login now