[gitg] Rename to 'table_body'
- From: Techlive Zheng <techlivezh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Rename to 'table_body'
- Date: Mon, 23 Dec 2013 16:45:29 +0000 (UTC)
commit d932a20b6d34f95bed4977a9eaa3db9ba24a18d8
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 | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/libgitg/resources/diff-view-html-builder.js b/libgitg/resources/diff-view-html-builder.js
index 4389f55..e2225c5 100644
--- a/libgitg/resources/diff-view-html-builder.js
+++ b/libgitg/resources/diff-view-html-builder.js
@@ -7,10 +7,11 @@ function diff_file(file, lnstate, data)
{
tabrepl = '<span class="tab" style="width: ' + data.settings.tab_width + 'ex">\t</span>';
- var tablecontent = '';
var added = 0;
var removed = 0;
+ var table_body = '';
+
for (var i = 0; i < file.hunks.length; ++i)
{
var h = file.hunks[i];
@@ -38,7 +39,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> \
@@ -91,7 +92,8 @@ function diff_file(file, lnstate, data)
}
row += '<td>' + html_escape(l.content).replace(/\t/g, tabrepl) + '</td>';
- tablecontent += row;
+
+ table_body += row;
lnstate.processed++;
@@ -147,7 +149,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]