[PATCH 10 of 11] hgweb: make stripes in file log with CSS
Alexander Plavin
me at aplavin.ru
Sat Jul 13 10:38:16 CDT 2013
# HG changeset patch
# User Alexander Plavin <me at aplavin.ru>
# Date 1373724215 -14400
# Sat Jul 13 18:03:35 2013 +0400
# Node ID c7644b3ea4ed881dff2022d8f7bcf900fb85d6e5
# Parent c463596fbbdd03b31fd05d369673b652d9d0f865
hgweb: make stripes in file log with CSS
diff -r c463596fbbdd -r c7644b3ea4ed 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 c463596fbbdd -r c7644b3ea4ed 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 c463596fbbdd -r c7644b3ea4ed 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">
More information about the Mercurial-devel
mailing list