[gitg] Rename 'table_body' to 'file_body'



commit 6686a3b9abb522af5c96ea41563759a81824c91c
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 debc974..63967e7 100644
--- a/libgitg/resources/diff-view-html-builder.js
+++ b/libgitg/resources/diff-view-html-builder.js
@@ -10,7 +10,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)
        {
@@ -39,7 +39,7 @@ function diff_file(file, lnstate, data)
                        hunkheader = '<span class="' + cls + '">' + nm + '</span>' + hunkheader;
                }
 
-               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">' + hunkheader + '</td> \
@@ -95,7 +95,7 @@ function diff_file(file, lnstate, data)
 
                        row += '</tr>';
 
-                       table_body += row;
+                       file_body += row;
 
                        lnstate.processed++;
 
@@ -151,7 +151,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,
        };
 
@@ -175,7 +175,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 cb784d0..6c7433d 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]