Mercurial > hg
changeset 19452:6f5556454edd
hgweb: make stripes in log and search with CSS
author | Alexander Plavin <me@aplavin.ru> |
---|---|
date | Sat, 13 Jul 2013 17:59:00 +0400 |
parents | aad410749ff3 |
children | ece3b329ad25 |
files | mercurial/templates/paper/search.tmpl mercurial/templates/paper/shortlog.tmpl mercurial/templates/paper/shortlogentry.tmpl tests/test-hgweb-commands.t tests/test-hgweb-empty.t |
diffstat | 5 files changed, 18 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/templates/paper/search.tmpl Sat Jul 13 17:51:43 2013 +0400 +++ b/mercurial/templates/paper/search.tmpl Sat Jul 13 17:59:00 2013 +0400 @@ -41,7 +41,9 @@ <th class="author">author</th> <th class="description">description</th> </tr> +<tbody class="stripes2"> {entries} +</tbody> </table> <div class="navigate">
--- a/mercurial/templates/paper/shortlog.tmpl Sat Jul 13 17:51:43 2013 +0400 +++ b/mercurial/templates/paper/shortlog.tmpl Sat Jul 13 17:59:00 2013 +0400 @@ -61,7 +61,9 @@ <th class="author">author</th> <th class="description">description</th> </tr> +<tbody class="stripes2"> {entries%shortlogentry} +</tbody> </table> <div class="navigate">
--- a/mercurial/templates/paper/shortlogentry.tmpl Sat Jul 13 17:51:43 2013 +0400 +++ b/mercurial/templates/paper/shortlogentry.tmpl Sat Jul 13 17:59:00 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 % '<span class="tag">{name|escape}</span> '}{bookmarks % '<span class="tag">{name|escape}</span> '}</td>
--- a/tests/test-hgweb-commands.t Sat Jul 13 17:51:43 2013 +0400 +++ b/tests/test-hgweb-commands.t Sat Jul 13 17:59:00 2013 +0400 @@ -306,27 +306,29 @@ <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/cad8025a2e87">branch commit with null character: </a><span class="branchhead">unstable</span> <span class="tag">tip</span> <span class="tag">something</span> </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/1d22e65f027e">branch</a><span class="branchhead">stable</span> </td> </tr> - <tr class="parity0"> + <tr> <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td> <td class="author">test</td> <td class="description"><a href="/rev/a4f92ed23982">Added tag 1.0 for changeset 2ef0ac749a14</a><span class="branchhead">default</span> </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/2ef0ac749a14">base</a><span class="tag">1.0</span> <span class="tag">anotherthing</span> </td> </tr> + </tbody> </table> <div class="navigate"> @@ -543,12 +545,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/2ef0ac749a14">base</a><span class="tag">1.0</span> <span class="tag">anotherthing</span> </td> </tr> + </tbody> </table> <div class="navigate">
--- a/tests/test-hgweb-empty.t Sat Jul 13 17:51:43 2013 +0400 +++ b/tests/test-hgweb-empty.t Sat Jul 13 17:59:00 2013 +0400 @@ -79,7 +79,9 @@ <th class="author">author</th> <th class="description">description</th> </tr> + <tbody class="stripes2"> + </tbody> </table> <div class="navigate"> @@ -172,7 +174,9 @@ <th class="author">author</th> <th class="description">description</th> </tr> + <tbody class="stripes2"> + </tbody> </table> <div class="navigate">