2007-03-12 20:59:02 +03:00
|
|
|
<%= link_to 'root', :action => 'browse', :id => @project, :path => '', :rev => @rev %>
|
|
|
|
<%
|
|
|
|
dirs = path.split('/')
|
|
|
|
if 'file' == kind
|
|
|
|
filename = dirs.pop
|
|
|
|
end
|
|
|
|
link_path = ''
|
|
|
|
dirs.each do |dir|
|
|
|
|
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 %>
|
|
|
|
/ <%= link_to h(filename), :action => 'revisions', :id => @project, :path => "#{link_path}/#{filename}", :rev => @rev %>
|
|
|
|
<% end %>
|
|
|
|
|
2006-12-24 16:38:45 +03:00
|
|
|
<%= "@ #{revision}" if revision %>
|