hgweb: make stripes in file log with CSS
authorAlexander Plavin <me@aplavin.ru>
Sat, 13 Jul 2013 18:03:35 +0400
changeset 19454 f4a3b50a30bd
parent 19453 ece3b329ad25
child 19455 c229a5e7511e
hgweb: make stripes in file log with CSS
mercurial/templates/paper/filelog.tmpl
mercurial/templates/paper/filelogentry.tmpl
tests/test-hgweb-filelog.t
--- 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">
--- 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>
--- 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">