To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / repositories / _breadcrumbs.html.erb @ 912:5e80956cc792

History | View | Annotate | Download (910 Bytes)

1 0:513646585e45 Chris
<%= link_to 'root', :action => 'show', :id => @project, :path => '', :rev => @rev %>
2 909:cbb26bc654de Chris
<%
3 0:513646585e45 Chris
dirs = path.split('/')
4
if 'file' == kind
5
    filename = dirs.pop
6
end
7
link_path = ''
8
dirs.each do |dir|
9
    next if dir.blank?
10
    link_path << '/' unless link_path.empty?
11 909:cbb26bc654de Chris
    link_path << "#{dir}"
12 0:513646585e45 Chris
    %>
13 441:cbce1fd3b1b7 Chris
    / <%= link_to h(dir), :action => 'show', :id => @project,
14
                :path => to_path_param(link_path), :rev => @rev %>
15 0:513646585e45 Chris
<% end %>
16
<% if filename %>
17 441:cbce1fd3b1b7 Chris
    / <%= link_to h(filename),
18
                   :action => 'changes', :id => @project,
19
                   :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %>
20 0:513646585e45 Chris
<% end %>
21 441:cbce1fd3b1b7 Chris
<%
22
  # @rev is revsion or Git and Mercurial branch or tag.
23
  # For Mercurial *tip*, @rev and @changeset are nil.
24
  rev_text = @changeset.nil? ? @rev : format_revision(@changeset)
25
%>
26
<%= "@ #{h rev_text}" unless rev_text.blank? %>
27 0:513646585e45 Chris
28
<% html_title(with_leading_slash(path)) -%>