Mercurial > hg > soundsoftware-site
comparison .svn/pristine/f9/f997cdb8d5aa036fade9b17162bf4429d398a59e.svn-base @ 1295:622f24f53b42 redmine-2.3
Update to Redmine SVN revision 11972 on 2.3-stable branch
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:02:21 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1294:3e4c3460b6ca | 1295:622f24f53b42 |
---|---|
1 <%= link_to(@repository.identifier.present? ? h(@repository.identifier) : 'root', | |
2 :action => 'show', :id => @project, | |
3 :repository_id => @repository.identifier_param, | |
4 :path => nil, :rev => @rev) %> | |
5 <% | |
6 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 link_path << "#{dir}" | |
15 %> | |
16 / <%= link_to h(dir), :action => 'show', :id => @project, :repository_id => @repository.identifier_param, | |
17 :path => to_path_param(link_path), :rev => @rev %> | |
18 <% end %> | |
19 <% if filename %> | |
20 / <%= link_to h(filename), | |
21 :action => 'changes', :id => @project, :repository_id => @repository.identifier_param, | |
22 :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %> | |
23 <% end %> | |
24 <% | |
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 | |
31 <% html_title(with_leading_slash(path)) -%> |