Project

General

Profile

Feature #779 » 0055-multiple-SCM-fix-navigation.patch

Luis Garcia, 2010-12-07 20:43

View differences:

patched/app/views/repositories/_breadcrumbs.rhtml 2010-12-07 17:06:11.000000000 +0100
1
<%= link_to 'root', :action => 'show', :id => @project, :path => '', :rev => @rev %>
1
<% if params[:rid] %>
2
(<%= @project.repository[params[:rid].to_i].url %>)
3
<% end %>
4
<%= link_to 'root', :action => 'show', :id => @project, :path => '', :rev => @rev , :rid => params[:rid]%>
2 5
<% 
3 6
dirs = path.split('/')
4 7
if 'file' == kind
......
10 13
    link_path << '/' unless link_path.empty?
11 14
    link_path << "#{dir}" 
12 15
    %>
13
    / <%= link_to h(dir), :action => 'show', :id => @project, :path => to_path_param(link_path), :rev => @rev %>
16
    / <%= link_to h(dir), :action => 'show', :id => @project, :path => to_path_param(link_path), :rev => @rev, :rid => params[:rid] %>
14 17
<% end %>
15 18
<% if filename %>
16
    / <%= link_to h(filename), :action => 'changes', :id => @project, :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %>
19
    / <%= link_to h(filename), :action => 'changes', :id => @project, :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev, :rid => params[:rid] %>
17 20
<% end %>
18 21

  
19 22
<%= "@ #{h revision}" if revision %>
(4-4/9)