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 = ''
|
2007-06-13 00:12:05 +04:00
|
|
|
dirs.each do |dir|
|
|
|
|
next if dir.blank?
|
2007-03-12 20:59:02 +03:00
|
|
|
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 %>
|
2007-12-02 00:33:15 +03:00
|
|
|
/ <%= link_to h(filename), :action => 'changes', :id => @project, :path => "#{link_path}/#{filename}", :rev => @rev %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
|
|
|
|
2007-06-13 00:12:05 +04:00
|
|
|
<%= "@ #{revision}" if revision %>
|