summaryrefslogtreecommitdiffstats
path: root/app/views/repositories/_navigation.rhtml
blob: b7ac989bc81e1b791eb12756d2f11944f28f5c14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<%= 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|
    next if dir.blank?
    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 => 'changes', :id => @project, :path => "#{link_path}/#{filename}", :rev => @rev %>
<% end %>

<%= "@ #{revision}" if revision %>

<% html_title(with_leading_slash(path)) -%>