Patchwork [11,of,11] hgweb: make stripes in diffstat with CSS

login
register
mail settings
Submitter Alexander Plavin
Date July 13, 2013, 3:38 p.m.
Message ID <15cce67693f5a9b02294.1373729897@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/1868/
State Superseded
Commit c229a5e7511e245bfb4acf7627a567539f1ef83d
Headers show

Comments

Alexander Plavin - July 13, 2013, 3:38 p.m.
# HG changeset patch
# User Alexander Plavin <me@aplavin.ru>
# Date 1373724417 -14400
#      Sat Jul 13 18:06:57 2013 +0400
# Node ID 15cce67693f5a9b022940a058a5b3bbfd6392f03
# Parent  c7644b3ea4ed881dff2022d8f7bcf900fb85d6e5
hgweb: make stripes in diffstat with CSS

Patch

diff -r c7644b3ea4ed -r 15cce67693f5 mercurial/templates/paper/changeset.tmpl
--- 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>
diff -r c7644b3ea4ed -r 15cce67693f5 mercurial/templates/paper/diffstat.tmpl
--- 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">
diff -r c7644b3ea4ed -r 15cce67693f5 tests/test-hgweb-commands.t
--- 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%;">&nbsp;</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">
diff -r c7644b3ea4ed -r 15cce67693f5 tests/test-hgweb-diffs.t
--- 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%;">&nbsp;</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%;">&nbsp;</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">
diff -r c7644b3ea4ed -r 15cce67693f5 tests/test-hgweb-removed.t
--- 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">