Mercurial > hg
changeset 19454:f4a3b50a30bd
hgweb: make stripes in file log with CSS
author | Alexander Plavin <me@aplavin.ru> |
---|---|
date | Sat, 13 Jul 2013 18:03:35 +0400 |
parents | ece3b329ad25 |
children | c229a5e7511e |
files | mercurial/templates/paper/filelog.tmpl mercurial/templates/paper/filelogentry.tmpl tests/test-hgweb-filelog.t |
diffstat | 3 files changed, 17 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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">