Patchwork [08,of,11] hgweb: make stripes in log and search with CSS

login
register
mail settings
Submitter Alexander Plavin
Date July 17, 2013, 7:26 p.m.
Message ID <139e36daeef68b780a8b.1374089181@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/1922/
State Accepted
Commit 6f5556454edde5c48c20bef06e0c6ec2edb5ee5f
Delegated to: Kevin Bullock
Headers show

Comments

Alexander Plavin - July 17, 2013, 7:26 p.m.
# HG changeset patch
# User Alexander Plavin <me@aplavin.ru>
# Date 1373723940 -14400
#      Sat Jul 13 17:59:00 2013 +0400
# Node ID 139e36daeef68b780a8bfc9657eea9e16c42341e
# Parent  c7870bb3d70c3b45ebfea323fe4f0845b4767717
hgweb: make stripes in log and search with CSS

Patch

diff -r c7870bb3d70c -r 139e36daeef6 mercurial/templates/paper/search.tmpl
--- a/mercurial/templates/paper/search.tmpl	Sat Jul 13 17:51:43 2013 +0400
+++ b/mercurial/templates/paper/search.tmpl	Sat Jul 13 17:59:00 2013 +0400
@@ -41,7 +41,9 @@ 
   <th class="author">author</th>
   <th class="description">description</th>
  </tr>
+<tbody class="stripes2">
 {entries}
+</tbody>
 </table>
 
 <div class="navigate">
diff -r c7870bb3d70c -r 139e36daeef6 mercurial/templates/paper/shortlog.tmpl
--- a/mercurial/templates/paper/shortlog.tmpl	Sat Jul 13 17:51:43 2013 +0400
+++ b/mercurial/templates/paper/shortlog.tmpl	Sat Jul 13 17:59:00 2013 +0400
@@ -61,7 +61,9 @@ 
   <th class="author">author</th>
   <th class="description">description</th>
  </tr>
+<tbody class="stripes2">
 {entries%shortlogentry}
+</tbody>
 </table>
 
 <div class="navigate">
diff -r c7870bb3d70c -r 139e36daeef6 mercurial/templates/paper/shortlogentry.tmpl
--- a/mercurial/templates/paper/shortlogentry.tmpl	Sat Jul 13 17:51:43 2013 +0400
+++ b/mercurial/templates/paper/shortlogentry.tmpl	Sat Jul 13 17:59:00 2013 +0400
@@ -1,4 +1,4 @@ 
- <tr class="parity{parity}">
+ <tr>
   <td class="age">{date|rfc822date}</td>
   <td class="author">{author|person}</td>
   <td class="description"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape|nonempty}</a>{inbranch%changelogbranchname}{branches%changelogbranchhead}{tags % '<span class="tag">{name|escape}</span> '}{bookmarks % '<span class="tag">{name|escape}</span> '}</td>
diff -r c7870bb3d70c -r 139e36daeef6 tests/test-hgweb-commands.t
--- a/tests/test-hgweb-commands.t	Sat Jul 13 17:51:43 2013 +0400
+++ b/tests/test-hgweb-commands.t	Sat Jul 13 17:59:00 2013 +0400
@@ -306,27 +306,29 @@ 
     <th class="author">author</th>
     <th class="description">description</th>
    </tr>
-   <tr class="parity0">
+  <tbody class="stripes2">
+   <tr>
     <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
     <td class="author">test</td>
     <td class="description"><a href="/rev/cad8025a2e87">branch commit with null character: </a><span class="branchhead">unstable</span> <span class="tag">tip</span> <span class="tag">something</span> </td>
    </tr>
-   <tr class="parity1">
+   <tr>
     <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
     <td class="author">test</td>
     <td class="description"><a href="/rev/1d22e65f027e">branch</a><span class="branchhead">stable</span> </td>
    </tr>
-   <tr class="parity0">
+   <tr>
     <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
     <td class="author">test</td>
     <td class="description"><a href="/rev/a4f92ed23982">Added tag 1.0 for changeset 2ef0ac749a14</a><span class="branchhead">default</span> </td>
    </tr>
-   <tr class="parity1">
+   <tr>
     <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
     <td class="author">test</td>
     <td class="description"><a href="/rev/2ef0ac749a14">base</a><span class="tag">1.0</span> <span class="tag">anotherthing</span> </td>
    </tr>
   
+  </tbody>
   </table>
   
   <div class="navigate">
@@ -543,12 +545,14 @@ 
     <th class="author">author</th>
     <th class="description">description</th>
    </tr>
-   <tr class="parity0">
+  <tbody class="stripes2">
+   <tr>
     <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
     <td class="author">test</td>
     <td class="description"><a href="/rev/2ef0ac749a14">base</a><span class="tag">1.0</span> <span class="tag">anotherthing</span> </td>
    </tr>
   
+  </tbody>
   </table>
   
   <div class="navigate">
diff -r c7870bb3d70c -r 139e36daeef6 tests/test-hgweb-empty.t
--- a/tests/test-hgweb-empty.t	Sat Jul 13 17:51:43 2013 +0400
+++ b/tests/test-hgweb-empty.t	Sat Jul 13 17:59:00 2013 +0400
@@ -79,7 +79,9 @@ 
     <th class="author">author</th>
     <th class="description">description</th>
    </tr>
+  <tbody class="stripes2">
   
+  </tbody>
   </table>
   
   <div class="navigate">
@@ -172,7 +174,9 @@ 
     <th class="author">author</th>
     <th class="description">description</th>
    </tr>
+  <tbody class="stripes2">
   
+  </tbody>
   </table>
   
   <div class="navigate">