annotate app/views/repositories/_breadcrumbs.rhtml @ 904:0a8317a50fa0
redmine-1.1
Close obsolete branch redmine-1.1
author |
Chris Cannam |
date |
Fri, 14 Jan 2011 12:53:21 +0000 |
parents |
513646585e45 |
children |
0579821a129a |
rev |
line source |
Chris@0
|
1 <%= link_to 'root', :action => 'show', :id => @project, :path => '', :rev => @rev %>
|
Chris@0
|
2 <%
|
Chris@0
|
3 dirs = path.split('/')
|
Chris@0
|
4 if 'file' == kind
|
Chris@0
|
5 filename = dirs.pop
|
Chris@0
|
6 end
|
Chris@0
|
7 link_path = ''
|
Chris@0
|
8 dirs.each do |dir|
|
Chris@0
|
9 next if dir.blank?
|
Chris@0
|
10 link_path << '/' unless link_path.empty?
|
Chris@0
|
11 link_path << "#{dir}"
|
Chris@0
|
12 %>
|
Chris@0
|
13 / <%= link_to h(dir), :action => 'show', :id => @project, :path => to_path_param(link_path), :rev => @rev %>
|
Chris@0
|
14 <% end %>
|
Chris@0
|
15 <% if filename %>
|
Chris@0
|
16 / <%= link_to h(filename), :action => 'changes', :id => @project, :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %>
|
Chris@0
|
17 <% end %>
|
Chris@0
|
18
|
Chris@0
|
19 <%= "@ #{h revision}" if revision %>
|
Chris@0
|
20
|
Chris@0
|
21 <% html_title(with_leading_slash(path)) -%>
|