[PATCH 10 of 11] hgweb: make stripes in file log with CSS
Alexander Plavin
me at aplavin.ru
Wed Jul 17 14:26:23 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 b38a81b6bb2976648cfbc7c9bc690a4734d30fe0
# Parent b2edfaa57c375e8cf49bc356060d53233ac7a202
hgweb: make stripes in file log with CSS
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">
More information about the Mercurial-devel
mailing list