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}"
|
|
|
|
%>
|
2008-07-04 21:58:14 +04:00
|
|
|
/ <%= link_to h(dir), :action => 'browse', :id => @project, :path => to_path_param(link_path), :rev => @rev %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
|
|
|
<% if filename %>
|
2008-07-04 21:58:14 +04:00
|
|
|
/ <%= link_to h(filename), :action => 'changes', :id => @project, :path => to_path_param("#{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 %>
|
2008-01-03 01:41:53 +03:00
|
|
|
|
|
|
|
<% html_title(with_leading_slash(path)) -%>
|