mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-08-27 20:09:23 +00:00
Move expander '<span>' to template
https://bugzilla.gnome.org/show_bug.cgi?id=720886
This commit is contained in:
parent
641713adf7
commit
fe6b937183
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue