Patchwork [10,of,11] hgweb: make stripes in file log with CSS

login
register
mail settings
Submitter Alexander Plavin
Date July 17, 2013, 7:26 p.m.
Message ID <b38a81b6bb2976648cfb.1374089183@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/1923/
State Accepted
Commit f4a3b50a30bd342f0ae73af5e424883d21b40586
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 1373724215 -14400
#      Sat Jul 13 18:03:35 2013 +0400
# Node ID b38a81b6bb2976648cfbc7c9bc690a4734d30fe0
# Parent  b2edfaa57c375e8cf49bc356060d53233ac7a202
hgweb: make stripes in file log with CSS

Patch

diff -r b2edfaa57c37 -r b38a81b6bb29 mercurial/templates/paper/filelog.tmpl
--- a/mercurial/templates/paper/filelog.tmpl	Sat Jul 13 18:02:34 2013 +0400
+++ b/mercurial/templates/paper/filelog.tmpl	Sat Jul 13 18:03:35 2013 +0400
@@ -64,7 +64,9 @@ 
   <th class="author">author</th>
   <th class="description">description</th>
  </tr>
+<tbody class="stripes2">
 {entries%filelogentry}
+</tbody>
 </table>
 
 <div class="navigate">
diff -r b2edfaa57c37 -r b38a81b6bb29 mercurial/templates/paper/filelogentry.tmpl
--- a/mercurial/templates/paper/filelogentry.tmpl	Sat Jul 13 18:02:34 2013 +0400
+++ b/mercurial/templates/paper/filelogentry.tmpl	Sat Jul 13 18:03:35 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%changelogtag}{rename%filelogrename}</td>
diff -r b2edfaa57c37 -r b38a81b6bb29 tests/test-hgweb-filelog.t
--- a/tests/test-hgweb-filelog.t	Sat Jul 13 18:02:34 2013 +0400
+++ b/tests/test-hgweb-filelog.t	Sat Jul 13 18:03:35 2013 +0400
@@ -185,17 +185,19 @@ 
     <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/01de2d66a28d">second a</a></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/5ed941583260">first a</a></td>
    </tr>
   
+  </tbody>
   </table>
   
   <div class="navigate">
@@ -292,17 +294,19 @@ 
     <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/01de2d66a28d">second a</a></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/5ed941583260">first a</a></td>
    </tr>
   
+  </tbody>
   </table>
   
   <div class="navigate">
@@ -399,12 +403,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/5ed941583260">first a</a></td>
    </tr>
   
+  </tbody>
   </table>
   
   <div class="navigate">
@@ -501,12 +507,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/5ed941583260">first a</a></td>
    </tr>
   
+  </tbody>
   </table>
   
   <div class="navigate">