Added link_to_issue helper.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@431 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-04-07 18:30:01 +00:00
parent 14314b77ee
commit cf4651b6bb
10 changed files with 14 additions and 11 deletions
+4
View File
@@ -50,6 +50,10 @@ module ApplicationHelper
link_to user.display_name, :controller => 'account', :action => 'show', :id => user
end
def link_to_issue(issue)
link_to "#{issue.tracker.name} ##{issue.id}", :controller => "issues", :action => "show", :id => issue
end
def image_to_function(name, function, html_options = {})
html_options.symbolize_keys!
tag(:input, html_options.merge({