[gitg/wip/techlivezh/diff-view-clean-up: 6/21] Change to much suitable 'hunk_stats'
- From: Techlive Zheng <techlivezh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/wip/techlivezh/diff-view-clean-up: 6/21] Change to much suitable 'hunk_stats'
- Date: Sat, 21 Dec 2013 16:40:27 +0000 (UTC)
commit f7382511a41632ef694295f7bea51bfa80c52c03
Author: Techlive Zheng <techlivezheng gmail com>
Date: Tue Dec 10 03:41:55 2013 +0800
Change to much suitable 'hunk_stats'
https://bugzilla.gnome.org/show_bug.cgi?id=720886
libgitg/resources/diff-view-html-builder.js | 6 +++---
libgitg/resources/diff-view.css | 2 +-
2 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 a942e21..1f10132 100644
--- a/libgitg/resources/diff-view-html-builder.js
+++ b/libgitg/resources/diff-view-html-builder.js
@@ -22,7 +22,7 @@ function diff_file(file, lnstate, data)
var cold = h.range.old.start;
var cnew = h.range.new.start;
- var hunkheader = '<span class="hunk_header">@@ -' + h.range.old.start + ',' +
h.range.old.lines + ' +' + h.range.new.start + ',' + h.range.new.lines + ' @@</span>';
+ var hunk_stats = '<span class="hunk_stats">@@ -' + h.range.old.start + ',' +
h.range.old.lines + ' +' + h.range.new.start + ',' + h.range.new.lines + ' @@</span>';
if (data.settings.staged || data.settings.unstaged)
{
@@ -39,13 +39,13 @@ function diff_file(file, lnstate, data)
nm = data.settings.strings.stage;
}
- hunkheader = '<span class="' + cls + '">' + nm + '</span>' + hunkheader;
+ hunk_stats = '<span class="' + cls + '">' + nm + '</span>' + hunk_stats;
}
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> \
+ <td class="hunk_header">' + hunk_stats + '</td> \
</tr>';
for (var j = 0; j < h.lines.length; ++j)
diff --git a/libgitg/resources/diff-view.css b/libgitg/resources/diff-view.css
index 1960523..063cb4d 100644
--- a/libgitg/resources/diff-view.css
+++ b/libgitg/resources/diff-view.css
@@ -239,7 +239,7 @@ span.unstage {
background-color: #ffdddd;
}
-span.hunk_header, span.file_path {
+span.hunk_stats, span.file_path {
display: inline-block;
vertical-align: middle;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]