[gitg] Move expander '<span>' to template
- From: Techlive Zheng <techlivezh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Move expander '<span>' to template
- Date: Mon, 23 Dec 2013 16:46:35 +0000 (UTC)
commit fe6b937183528fdbbe2f695529f0f4e02bec2ef2
Author: Techlive Zheng <techlivezheng gmail com>
Date: Tue Dec 24 00:10:48 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 48da6a6..4855403 100644
--- a/libgitg/resources/diff-view-html-builder.js
+++ b/libgitg/resources/diff-view-html-builder.js
@@ -128,7 +128,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 efaa8ae..7087cc8 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]