Project

General

Profile

Patch #7895 ยป source_tag_links.patch

Shane Corgatelli, 2011-03-16 22:51

View differences:

app/helpers/application_helper.rb
end
when 'source', 'export'
if project && project.repository
name =~ %r{^[/\\]*(.*?)(@([0-9a-f]+))?(#(L\d+))?$}
name =~ %r{^[/\\]*(.*?)(@([0-9a-zA-Z_.-]+))?(#(L\d+))?$}
path, rev, anchor = $1, $3, $5
link = link_to h("#{prefix}:#{name}"), {:controller => 'repositories', :action => 'entry', :id => project,
:path => to_path_param(path),
    (1-1/1)