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 @ 1591:63650ae64bf2

History | View | Annotate | Download (1.11 KB)

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