Patch #7895 ยป source_tag_links.patch
| 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),
|
||