_navigation.rhtml
19 lines
| 593 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}" | ||||
%> | ||||
/ <%= link_to h(dir), :action => 'browse', :id => @project, :path => link_path, :rev => @rev %> | ||||
<% end %> | ||||
<% if filename %> | ||||
|
r927 | / <%= link_to h(filename), :action => 'changes', :id => @project, :path => "#{link_path}/#{filename}", :rev => @rev %> | ||
|
r330 | <% end %> | ||
|
r556 | <%= "@ #{revision}" if revision %> | ||