[gitg/wip/techlivezh/diff-view-clean-up: 2/21] Rename to 'table_body'



commit cda7f9f30b3f590af4c306c26b872f7ddbabf089
Author: Techlive Zheng <techlivezheng gmail com>
Date:   Sun Dec 8 04:41:08 2013 +0800

    Rename to 'table_body'
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720886

 libgitg/resources/diff-view-html-builder.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libgitg/resources/diff-view-html-builder.js b/libgitg/resources/diff-view-html-builder.js
index c8fe0e6..03937a5 100644
--- a/libgitg/resources/diff-view-html-builder.js
+++ b/libgitg/resources/diff-view-html-builder.js
@@ -13,7 +13,7 @@ function diff_file(file, lnstate, data)
        var added = 0;
        var removed = 0;
 
-       var tablecontent = '';
+       var table_body = '';
 
        for (var i = 0; i < file.hunks.length; ++i)
        {
@@ -42,7 +42,7 @@ function diff_file(file, lnstate, data)
                        hunkheader = '<span class="' + cls + '">' + nm + '</span>' + hunkheader;
                }
 
-               tablecontent += '<tr class="hunk_header">\
+               table_body += '<tr class="hunk_header">\
                        <td class="gutter old">' + lnstate.gutterdots + '</td> \
                        <td class="gutter new">' + lnstate.gutterdots + '</td> \
                        <td class="hunk_header">' + hunkheader + '</td> \
@@ -97,7 +97,7 @@ function diff_file(file, lnstate, data)
 
                        row += '<td>' + l.content + '</td>';
 
-                       tablecontent += row;
+                       table_body += row;
 
                        lnstate.processed++;
 
@@ -153,7 +153,7 @@ function diff_file(file, lnstate, data)
        var template = data.file_template;
        var repls = {
                'FILEPATH': filepath,
-               'TABLE_BODY': tablecontent,
+               'TABLE_BODY': table_body,
                'STATS': stats,
        };
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]