code layout clean up application helper "link_to_revision" method
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8033 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
655dc18d71
commit
3eb534818a
|
@ -109,9 +109,11 @@ module ApplicationHelper
|
||||||
def link_to_revision(revision, project, options={})
|
def link_to_revision(revision, project, options={})
|
||||||
text = options.delete(:text) || format_revision(revision)
|
text = options.delete(:text) || format_revision(revision)
|
||||||
rev = revision.respond_to?(:identifier) ? revision.identifier : revision
|
rev = revision.respond_to?(:identifier) ? revision.identifier : revision
|
||||||
|
link_to(
|
||||||
link_to(h(text), {:controller => 'repositories', :action => 'revision', :id => project, :rev => rev},
|
h(text),
|
||||||
:title => l(:label_revision_id, format_revision(revision)))
|
{:controller => 'repositories', :action => 'revision', :id => project, :rev => rev},
|
||||||
|
:title => l(:label_revision_id, format_revision(revision))
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Generates a link to a message
|
# Generates a link to a message
|
||||||
|
|
Loading…
Reference in New Issue