[refs #90] change pull header

This commit is contained in:
Alexander Machehin 2012-09-28 21:49:10 +06:00
parent fbc537174e
commit 64ee8b6845
1 changed files with 4 additions and 4 deletions

View File

@ -21,10 +21,10 @@ module PullRequestHelper
end
def pull_header pull
str = "#{t '.header'} #{t 'into'} <span class='label-bootstrap label-info font14'> \
#{show_ref pull, 'base'}</span> \
#{t 'from'} <span class='label-bootstrap label-info font14'> \
#{show_ref pull, 'head'}</span>"
str = "#{t '.header'} #{t 'from'} <span class='label-bootstrap label-info font14'> \
#{show_ref pull, 'head'}</span> \
#{t 'into'} <span class='label-bootstrap label-info font14'> \
#{show_ref pull, 'base'}</span>"
str << " #{t 'by'} #{link_to pull.user.uname, user_path(pull.user)}" if pull.persisted?
str.html_safe
end