Project

General

Profile

Defect #3483 ยป source_export-only_path.patch

William Baum, 2009-10-19 06:25

View differences:

app/helpers/application_helper.rb (working copy)
527 527
            if project && project.repository
528 528
              name =~ %r{^[/\\]*(.*?)(@([0-9a-f]+))?(#(L\d+))?$}
529 529
              path, rev, anchor = $1, $3, $5
530
              link = link_to h("#{prefix}:#{name}"), {:controller => 'repositories', :action => 'entry', :id => project,
530
              link = link_to h("#{prefix}:#{name}"), {:only_path => only_path, :controller => 'repositories', :action => 'entry', :id => project,
531 531
                                                      :path => to_path_param(path),
532 532
                                                      :rev => rev,
533 533
                                                      :anchor => anchor,
    (1-1/1)