Project

General

Profile

Patch #1127 » strike_closed_issue_link.diff

strikethru closed issues - Otávio Sampaio, 2008-07-10 15:20

View differences:

application_helper.rb (working copy)
41 41
  end
42 42
  
43 43
  def link_to_issue(issue, options={})
44
    link_to "#{issue.tracker.name} ##{issue.id}", {:controller => "issues", :action => "show", :id => issue}, options
44
    link = link_to "#{issue.tracker.name} ##{issue.id}", {:controller => "issues", :action => "show", :id => issue}, options
45
    link = content_tag(:del, link) if issue.closed?
46
    link
45 47
  end
46 48
  
47 49
  def toggle_link(name, id, options={})
(2-2/3)