_navigation.rhtml
21 lines
| 668 B
| text/html+ruby
|
RhtmlLexer
|
r330 | <%= link_to 'root', :action => 'browse', :id => @project, :path => '', :rev => @rev %> | ||
<% | ||||
dirs = path.split('/') | ||||
if 'file' == kind | ||||
filename = dirs.pop | ||||
end | ||||
link_path = '' | ||||
|
r556 | dirs.each do |dir| | ||
next if dir.blank? | ||||
|
r330 | link_path << '/' unless link_path.empty? | ||
link_path << "#{dir}" | ||||
%> | ||||
|
r1609 | / <%= link_to h(dir), :action => 'browse', :id => @project, :path => to_path_param(link_path), :rev => @rev %> | ||
|
r330 | <% end %> | ||
<% if filename %> | ||||
|
r1609 | / <%= link_to h(filename), :action => 'changes', :id => @project, :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %> | ||
|
r330 | <% end %> | ||
|
r556 | <%= "@ #{revision}" if revision %> | ||
|
r1019 | |||
<% html_title(with_leading_slash(path)) -%> | ||||