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

login
register
mail settings
Submitter Alexander Plavin
Date July 13, 2013, 3:38 p.m.
Message ID <357e327d77c8b2f3875b.1373729894@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/1866/
State Superseded
Commit 6f5556454edde5c48c20bef06e0c6ec2edb5ee5f
Headers show

Comments

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

Patch

diff -r e8be3586d1b8 -r 357e327d77c8 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 e8be3586d1b8 -r 357e327d77c8 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 e8be3586d1b8 -r 357e327d77c8 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 e8be3586d1b8 -r 357e327d77c8 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 e8be3586d1b8 -r 357e327d77c8 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">