Mercurial > hg > soundsoftware-site
comparison app/views/repositories/_breadcrumbs.html.erb @ 908:c6c2cbd0afee redmine-1.3
Rename .rhtml files to .html.erb in preparation for merge
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 18:36:29 +0000 |
parents | app/views/repositories/_breadcrumbs.rhtml@cbce1fd3b1b7 |
children | cbb26bc654de |
comparison
equal
deleted
inserted
replaced
907:df51e8ff578d | 908:c6c2cbd0afee |
---|---|
1 <%= link_to 'root', :action => 'show', :id => @project, :path => '', :rev => @rev %> | |
2 <% | |
3 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 link_path << "#{dir}" | |
12 %> | |
13 / <%= link_to h(dir), :action => 'show', :id => @project, | |
14 :path => to_path_param(link_path), :rev => @rev %> | |
15 <% end %> | |
16 <% if filename %> | |
17 / <%= link_to h(filename), | |
18 :action => 'changes', :id => @project, | |
19 :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %> | |
20 <% end %> | |
21 <% | |
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 | |
28 <% html_title(with_leading_slash(path)) -%> |