annotate .svn/pristine/f9/f997cdb8d5aa036fade9b17162bf4429d398a59e.svn-base @ 1298:4f746d8966dd
redmine_2.3_integration
Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author |
Chris Cannam |
date |
Fri, 14 Jun 2013 09:28:30 +0100 |
parents |
622f24f53b42 |
children |
|
rev |
line source |
Chris@1295
|
1 <%= link_to(@repository.identifier.present? ? h(@repository.identifier) : 'root',
|
Chris@1295
|
2 :action => 'show', :id => @project,
|
Chris@1295
|
3 :repository_id => @repository.identifier_param,
|
Chris@1295
|
4 :path => nil, :rev => @rev) %>
|
Chris@1295
|
5 <%
|
Chris@1295
|
6 dirs = path.split('/')
|
Chris@1295
|
7 if 'file' == kind
|
Chris@1295
|
8 filename = dirs.pop
|
Chris@1295
|
9 end
|
Chris@1295
|
10 link_path = ''
|
Chris@1295
|
11 dirs.each do |dir|
|
Chris@1295
|
12 next if dir.blank?
|
Chris@1295
|
13 link_path << '/' unless link_path.empty?
|
Chris@1295
|
14 link_path << "#{dir}"
|
Chris@1295
|
15 %>
|
Chris@1295
|
16 / <%= link_to h(dir), :action => 'show', :id => @project, :repository_id => @repository.identifier_param,
|
Chris@1295
|
17 :path => to_path_param(link_path), :rev => @rev %>
|
Chris@1295
|
18 <% end %>
|
Chris@1295
|
19 <% if filename %>
|
Chris@1295
|
20 / <%= link_to h(filename),
|
Chris@1295
|
21 :action => 'changes', :id => @project, :repository_id => @repository.identifier_param,
|
Chris@1295
|
22 :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %>
|
Chris@1295
|
23 <% end %>
|
Chris@1295
|
24 <%
|
Chris@1295
|
25 # @rev is revsion or Git and Mercurial branch or tag.
|
Chris@1295
|
26 # For Mercurial *tip*, @rev and @changeset are nil.
|
Chris@1295
|
27 rev_text = @changeset.nil? ? @rev : format_revision(@changeset)
|
Chris@1295
|
28 %>
|
Chris@1295
|
29 <%= "@ #{h rev_text}" unless rev_text.blank? %>
|
Chris@1295
|
30
|
Chris@1295
|
31 <% html_title(with_leading_slash(path)) -%>
|