[gitg/wip/techlivezh/diff-view-clean-up: 16/21] Move expander '<span>' to template
- From: Techlive Zheng <techlivezh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/wip/techlivezh/diff-view-clean-up: 16/21] Move expander '<span>' to template
- Date: Sat, 21 Dec 2013 16:41:18 +0000 (UTC)
commit 6c5d03eb2444b7d2a3f85b07d71e5c924b85ffd8
Author: Techlive Zheng <techlivezheng gmail com>
Date: Wed Dec 18 12:21:47 2013 +0800
Move expander '<span>' to template
https://bugzilla.gnome.org/show_bug.cgi?id=720886
libgitg/resources/diff-view-html-builder.js | 2 +-
libgitg/resources/diff-view.html | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgitg/resources/diff-view-html-builder.js b/libgitg/resources/diff-view-html-builder.js
index 3a81456..04a845b 100644
--- a/libgitg/resources/diff-view-html-builder.js
+++ b/libgitg/resources/diff-view-html-builder.js
@@ -141,7 +141,7 @@ function diff_file(file, lnstate, data)
var addedp = Math.floor(added / total * 100);
var removedp = 100 - addedp;
- var file_stats = '<span class="expander">-</span><span class="file_stats"><span class="number">' +
(added + removed) + '</span><span class="bar"><span class="added" style="width: ' + addedp +
'%;"></span><span class="removed" style="width: ' + removedp + '%;"></span></span></span>';
+ var file_stats = '<span class="file_stats"><span class="number">' + (added + removed) +
'</span><span class="bar"><span class="added" style="width: ' + addedp + '%;"></span><span class="removed"
style="width: ' + removedp + '%;"></span></span></span>';
if (data.settings.staged || data.settings.unstaged)
{
diff --git a/libgitg/resources/diff-view.html b/libgitg/resources/diff-view.html
index 58d793f..a2a8258 100644
--- a/libgitg/resources/diff-view.html
+++ b/libgitg/resources/diff-view.html
@@ -30,6 +30,7 @@
<tbody>
<tr class="file_header">
<td colspan="3">
+ <span class="expander">-</span>
<!-- ${FILE_STATS} -->
<span class="file_path"><!-- ${FILE_PATH} --></span>
</td>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]