small refactoring
This commit is contained in:
parent
d04f276f1d
commit
58025f8681
|
@ -37,12 +37,12 @@ module DiffHelper
|
|||
end
|
||||
prepare(args.merge({:filepath => filepath, :comments => comments, :in_discussion => in_discussion}))
|
||||
|
||||
res = "<table class='diff inline' cellspacing='0' cellpadding='0' ng-non-bindable>"
|
||||
res << "<tbody>"
|
||||
res = '<table class="diff inline" cellspacing="0" cellpadding="0" ng-non-bindable>'
|
||||
res << '<tbody>'
|
||||
res << renderer(diff_display.data) #diff_display.render(Git::Diff::InlineCallback.new comments, path)
|
||||
res << tr_line_comments(comments) if in_discussion
|
||||
res << "</tbody>"
|
||||
res << "</table>"
|
||||
res << '</tbody>'
|
||||
res << '</table>'
|
||||
res.html_safe
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue