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



commit d6cf38ef43f6eb4cd051722d89e00a904526dc86
Author: Techlive Zheng <techlivezheng gmail com>
Date:   Tue Dec 17 19:11:15 2013 +0800

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

 libgitg/resources/diff-view-html-builder.js |   10 +++++-----
 libgitg/resources/diff-view.html            |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libgitg/resources/diff-view-html-builder.js b/libgitg/resources/diff-view-html-builder.js
index 9f63e41..271ec1f 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 table_body = '';
+       var file_body = '';
 
        for (var i = 0; i < file.hunks.length; ++i)
        {
@@ -42,7 +42,7 @@ function diff_file(file, lnstate, data)
                        hunk_stats = '<span class="' + cls + '">' + nm + '</span>' + hunk_stats;
                }
 
-               table_body += '<tr class="hunk_header">\
+               file_body += '<tr class="hunk_header">\
                        <td class="gutter old">' + lnstate.gutterdots + '</td> \
                        <td class="gutter new">' + lnstate.gutterdots + '</td> \
                        <td class="hunk_header">' + hunk_stats + '</td> \
@@ -99,7 +99,7 @@ function diff_file(file, lnstate, data)
 
                        row += '</tr>';
 
-                       table_body += row;
+                       file_body += row;
 
                        lnstate.processed++;
 
@@ -155,7 +155,7 @@ function diff_file(file, lnstate, data)
        var template = data.file_template;
        var repls = {
                'FILE_PATH': file_path,
-               'TABLE_BODY': table_body,
+               'FILE_BODY': file_body,
                'STATS': stats,
        };
 
@@ -177,7 +177,7 @@ function diff_files(files, lines, maxlines, data)
 {
        var repl = [
                'FILE_PATH',
-               'TABLE_BODY',
+               'FILE_BODY',
                'STATS'
        ];
 
diff --git a/libgitg/resources/diff-view.html b/libgitg/resources/diff-view.html
index dae3845..421e929 100644
--- a/libgitg/resources/diff-view.html
+++ b/libgitg/resources/diff-view.html
@@ -31,7 +31,7 @@
             <tr class="file_header">
               <td colspan="3"><!-- ${STATS} --><span class="file_path"><!-- ${FILE_PATH} --></span></td>
             </tr>
-            <!-- ${TABLE_BODY} -->
+            <!-- ${FILE_BODY} -->
           </tbody>
         </table>
       </div>


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