[gitg/wip/techlivezh/diff-view-clean-up: 7/21] Rename 'filepath' to 'file_path'
- From: Techlive Zheng <techlivezh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/wip/techlivezh/diff-view-clean-up: 7/21] Rename 'filepath' to 'file_path'
- Date: Sat, 21 Dec 2013 16:40:32 +0000 (UTC)
commit 3d6be3844c449f70ef0b75d535fd5c9928e5c6d1
Author: Techlive Zheng <techlivezheng gmail com>
Date: Tue Dec 17 19:11:15 2013 +0800
Rename 'filepath' to 'file_path'
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 1f10132..9f63e41 100644
--- a/libgitg/resources/diff-view-html-builder.js
+++ b/libgitg/resources/diff-view-html-builder.js
@@ -117,15 +117,15 @@ function diff_file(file, lnstate, data)
}
}
- var filepath;
+ var file_path;
if (file.file.new.path)
{
- filepath = file.file.new.path;
+ file_path = file.file.new.path;
}
else
{
- filepath = file.file.old.path;
+ file_path = file.file.old.path;
}
var total = added + removed;
@@ -154,7 +154,7 @@ function diff_file(file, lnstate, data)
var template = data.file_template;
var repls = {
- 'FILEPATH': filepath,
+ 'FILE_PATH': file_path,
'TABLE_BODY': table_body,
'STATS': stats,
};
@@ -176,7 +176,7 @@ function diff_file(file, lnstate, data)
function diff_files(files, lines, maxlines, data)
{
var repl = [
- 'FILEPATH',
+ 'FILE_PATH',
'TABLE_BODY',
'STATS'
];
diff --git a/libgitg/resources/diff-view.html b/libgitg/resources/diff-view.html
index 7c0725c..dae3845 100644
--- a/libgitg/resources/diff-view.html
+++ b/libgitg/resources/diff-view.html
@@ -29,7 +29,7 @@
</colgroup>
<tbody>
<tr class="file_header">
- <td colspan="3"><!-- ${STATS} --><span class="file_path"><!-- ${FILEPATH} --></span></td>
+ <td colspan="3"><!-- ${STATS} --><span class="file_path"><!-- ${FILE_PATH} --></span></td>
</tr>
<!-- ${TABLE_BODY} -->
</tbody>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]