annotate .svn/pristine/aa/aa1a7eb90b6f264114d03a211b1ad82b079870a8.svn-base @ 1517:dffacf8a6908
redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author |
Chris Cannam |
date |
Tue, 09 Sep 2014 09:29:00 +0100 |
parents |
261b3d9a4903 |
children |
|
rev |
line source |
Chris@1464
|
1 <%= link_to(@repository.identifier.present? ? h(@repository.identifier) : 'root',
|
Chris@1464
|
2 :action => 'show', :id => @project,
|
Chris@1464
|
3 :repository_id => @repository.identifier_param,
|
Chris@1464
|
4 :path => nil, :rev => @rev) %>
|
Chris@1464
|
5 <%
|
Chris@1464
|
6 dirs = path.split('/')
|
Chris@1464
|
7 if 'file' == kind
|
Chris@1464
|
8 filename = dirs.pop
|
Chris@1464
|
9 end
|
Chris@1464
|
10 link_path = ''
|
Chris@1464
|
11 dirs.each do |dir|
|
Chris@1464
|
12 next if dir.blank?
|
Chris@1464
|
13 link_path << '/' unless link_path.empty?
|
Chris@1464
|
14 link_path << "#{dir}"
|
Chris@1464
|
15 %>
|
Chris@1464
|
16 / <%= link_to h(dir), :action => 'show', :id => @project, :repository_id => @repository.identifier_param,
|
Chris@1464
|
17 :path => to_path_param(link_path), :rev => @rev %>
|
Chris@1464
|
18 <% end %>
|
Chris@1464
|
19 <% if filename %>
|
Chris@1464
|
20 / <%= link_to h(filename),
|
Chris@1464
|
21 :action => 'changes', :id => @project, :repository_id => @repository.identifier_param,
|
Chris@1464
|
22 :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %>
|
Chris@1464
|
23 <% end %>
|
Chris@1464
|
24 <%
|
Chris@1464
|
25 # @rev is revsion or Git and Mercurial branch or tag.
|
Chris@1464
|
26 # For Mercurial *tip*, @rev and @changeset are nil.
|
Chris@1464
|
27 rev_text = @changeset.nil? ? @rev : format_revision(@changeset)
|
Chris@1464
|
28 %>
|
Chris@1464
|
29 <%= "@ #{h rev_text}" unless rev_text.blank? %>
|
Chris@1464
|
30
|
Chris@1464
|
31 <% html_title(with_leading_slash(path)) -%>
|