Mercurial > hg
changeset 19455:c229a5e7511e
hgweb: make stripes in diffstat with CSS
author | Alexander Plavin <me@aplavin.ru> |
---|---|
date | Sat, 13 Jul 2013 18:06:57 +0400 |
parents | f4a3b50a30bd |
children | 2345c9eb73c7 |
files | mercurial/templates/paper/changeset.tmpl mercurial/templates/paper/diffstat.tmpl tests/test-hgweb-commands.t tests/test-hgweb-diffs.t tests/test-hgweb-removed.t |
diffstat | 5 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/templates/paper/changeset.tmpl Sat Jul 13 18:03:35 2013 +0400 +++ b/mercurial/templates/paper/changeset.tmpl Sat Jul 13 18:06:57 2013 +0400 @@ -70,7 +70,7 @@ <div id="diffstatdetails" style="display:none;"> <a href="javascript:toggleDiffstat()"/>[<tt>-</tt>]</a> <p> - <table>{diffstat}</table> + <table class="stripes2">{diffstat}</table> </div> </td> </tr>
--- a/mercurial/templates/paper/diffstat.tmpl Sat Jul 13 18:03:35 2013 +0400 +++ b/mercurial/templates/paper/diffstat.tmpl Sat Jul 13 18:06:57 2013 +0400 @@ -1,4 +1,4 @@ - <tr class="parity{parity}"> + <tr> <td class="diffstat-file"><a href="#l{fileno}.1">{file|escape}</a></td> <td class="diffstat-total" align="right">{total}</td> <td class="diffstat-graph">
--- a/tests/test-hgweb-commands.t Sat Jul 13 18:03:35 2013 +0400 +++ b/tests/test-hgweb-commands.t Sat Jul 13 18:06:57 2013 +0400 @@ -429,7 +429,7 @@ <div id="diffstatdetails" style="display:none;"> <a href="javascript:toggleDiffstat()"/>[<tt>-</tt>]</a> <p> - <table> <tr class="parity0"> + <table class="stripes2"> <tr> <td class="diffstat-file"><a href="#l1.1">da/foo</a></td> <td class="diffstat-total" align="right">1</td> <td class="diffstat-graph"> @@ -437,7 +437,7 @@ <span class="diffstat-remove" style="width:0.0%;"> </span> </td> </tr> - <tr class="parity1"> + <tr> <td class="diffstat-file"><a href="#l2.1">foo</a></td> <td class="diffstat-total" align="right">1</td> <td class="diffstat-graph">
--- a/tests/test-hgweb-diffs.t Sat Jul 13 18:03:35 2013 +0400 +++ b/tests/test-hgweb-diffs.t Sat Jul 13 18:06:57 2013 +0400 @@ -119,7 +119,7 @@ <div id="diffstatdetails" style="display:none;"> <a href="javascript:toggleDiffstat()"/>[<tt>-</tt>]</a> <p> - <table> <tr class="parity0"> + <table class="stripes2"> <tr> <td class="diffstat-file"><a href="#l1.1">a</a></td> <td class="diffstat-total" align="right">1</td> <td class="diffstat-graph"> @@ -127,7 +127,7 @@ <span class="diffstat-remove" style="width:0.0%;"> </span> </td> </tr> - <tr class="parity1"> + <tr> <td class="diffstat-file"><a href="#l2.1">b</a></td> <td class="diffstat-total" align="right">1</td> <td class="diffstat-graph"> @@ -384,7 +384,7 @@ <div id="diffstatdetails" style="display:none;"> <a href="javascript:toggleDiffstat()"/>[<tt>-</tt>]</a> <p> - <table> <tr class="parity0"> + <table class="stripes2"> <tr> <td class="diffstat-file"><a href="#l1.1">a</a></td> <td class="diffstat-total" align="right">1</td> <td class="diffstat-graph"> @@ -392,7 +392,7 @@ <span class="diffstat-remove" style="width:0.0%;"> </span> </td> </tr> - <tr class="parity1"> + <tr> <td class="diffstat-file"><a href="#l2.1">b</a></td> <td class="diffstat-total" align="right">1</td> <td class="diffstat-graph">
--- a/tests/test-hgweb-removed.t Sat Jul 13 18:03:35 2013 +0400 +++ b/tests/test-hgweb-removed.t Sat Jul 13 18:06:57 2013 +0400 @@ -100,7 +100,7 @@ <div id="diffstatdetails" style="display:none;"> <a href="javascript:toggleDiffstat()"/>[<tt>-</tt>]</a> <p> - <table> <tr class="parity0"> + <table class="stripes2"> <tr> <td class="diffstat-file"><a href="#l1.1">a</a></td> <td class="diffstat-total" align="right">1</td> <td class="diffstat-graph">