Project

General

Profile

Defect #5871 ยป application_helper.rb.diff

Yuki Kita, 2010-07-12 17:03

View differences:

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