Project

General

Profile

Feature #779 » fix-broken-rev-link.83fae10224d087.diff

Toshi MARUYAMA, 2011-01-18 15:39

View differences:

app/helpers/application_helper.rb
105 105
  def link_to_revision(revision, project, options={})
106 106
    text = options.delete(:text) || format_revision(revision)
107 107
    rev = revision.respond_to?(:identifier) ? revision.identifier : revision
108
    link_to(text, {:controller => 'repositories', :action => 'revision', :id => project, :rev => revision, :rid => params[:rid]}, :title => l(:label_revision_id, format_revision(revision)))
108
    link_to(text, {:controller => 'repositories', :action => 'revision', :id => project, :rev => rev, :rid => params[:rid]}, :title => l(:label_revision_id, format_revision(revision)))
109 109
  end
110 110

  
111 111
  # Generates a link to a project if active
(8-8/9)