small refactoring

This commit is contained in:
Vokhmin Alexey V 2013-12-30 20:19:20 +04:00
parent d04f276f1d
commit 58025f8681
1 changed files with 4 additions and 4 deletions

View File

@ -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