Mercurial > hg-stable
changeset 19450:ddae9e9b7ca1
hgweb: make stripes in repo list with CSS
author | Alexander Plavin <me@aplavin.ru> |
---|---|
date | Sat, 13 Jul 2013 17:49:20 +0400 |
parents | 9f471af285a9 |
children | aad410749ff3 |
files | mercurial/templates/paper/index.tmpl mercurial/templates/paper/map tests/test-hgwebdir.t |
diffstat | 3 files changed, 44 insertions(+), 36 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/templates/paper/index.tmpl Sat Jul 13 17:43:45 2013 +0400 +++ b/mercurial/templates/paper/index.tmpl Sat Jul 13 17:49:20 2013 +0400 @@ -20,7 +20,9 @@ <th> </th> <th> </th> </tr> + <tbody class="stripes2"> {entries%indexentry} + </tbody> </table> </div> </div>
--- a/mercurial/templates/paper/map Sat Jul 13 17:43:45 2013 +0400 +++ b/mercurial/templates/paper/map Sat Jul 13 17:49:20 2013 +0400 @@ -218,7 +218,7 @@ </tr>' indexentry = ' - <tr class="parity{parity}"> + <tr> <td><a href="{url|urlescape}{sessionvars%urlparameter}">{name|escape}</a></td> <td>{description}</td> <td>{contact|obfuscate}</td>
--- a/tests/test-hgwebdir.t Sat Jul 13 17:43:45 2013 +0400 +++ b/tests/test-hgwebdir.t Sat Jul 13 17:49:20 2013 +0400 @@ -209,8 +209,9 @@ <th> </th> <th> </th> </tr> + <tbody class="stripes2"> - <tr class="parity0"> + <tr> <td><a href="/t/a/?style=paper">t/a</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -223,7 +224,7 @@ </td> </tr> - <tr class="parity1"> + <tr> <td><a href="/b/?style=paper">b</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -236,7 +237,7 @@ </td> </tr> - <tr class="parity0"> + <tr> <td><a href="/coll/a/?style=paper">coll/a</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -249,7 +250,7 @@ </td> </tr> - <tr class="parity1"> + <tr> <td><a href="/coll/a/.hg/patches/?style=paper">coll/a/.hg/patches</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -262,7 +263,7 @@ </td> </tr> - <tr class="parity0"> + <tr> <td><a href="/coll/b/?style=paper">coll/b</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -275,7 +276,7 @@ </td> </tr> - <tr class="parity1"> + <tr> <td><a href="/coll/c/?style=paper">coll/c</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -288,7 +289,7 @@ </td> </tr> - <tr class="parity0"> + <tr> <td><a href="/coll/notrepo/e/?style=paper">coll/notrepo/e</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -301,7 +302,7 @@ </td> </tr> - <tr class="parity1"> + <tr> <td><a href="/coll/notrepo/f/?style=paper">coll/notrepo/f</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -314,7 +315,7 @@ </td> </tr> - <tr class="parity0"> + <tr> <td><a href="/rcoll/a/?style=paper">rcoll/a</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -327,7 +328,7 @@ </td> </tr> - <tr class="parity1"> + <tr> <td><a href="/rcoll/a/.hg/patches/?style=paper">rcoll/a/.hg/patches</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -340,7 +341,7 @@ </td> </tr> - <tr class="parity0"> + <tr> <td><a href="/rcoll/b/?style=paper">rcoll/b</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -353,7 +354,7 @@ </td> </tr> - <tr class="parity1"> + <tr> <td><a href="/rcoll/b/d/?style=paper">rcoll/b/d</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -366,7 +367,7 @@ </td> </tr> - <tr class="parity0"> + <tr> <td><a href="/rcoll/c/?style=paper">rcoll/c</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -379,7 +380,7 @@ </td> </tr> - <tr class="parity1"> + <tr> <td><a href="/rcoll/notrepo/e/?style=paper">rcoll/notrepo/e</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -392,7 +393,7 @@ </td> </tr> - <tr class="parity0"> + <tr> <td><a href="/rcoll/notrepo/e/e2/?style=paper">rcoll/notrepo/e/e2</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -405,7 +406,7 @@ </td> </tr> - <tr class="parity1"> + <tr> <td><a href="/rcoll/notrepo/f/?style=paper">rcoll/notrepo/f</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -418,7 +419,7 @@ </td> </tr> - <tr class="parity0"> + <tr> <td><a href="/rcoll/notrepo/f/f2/?style=paper">rcoll/notrepo/f/f2</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -431,7 +432,7 @@ </td> </tr> - <tr class="parity1"> + <tr> <td><a href="/star/webdir/a/?style=paper">star/webdir/a</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -444,7 +445,7 @@ </td> </tr> - <tr class="parity0"> + <tr> <td><a href="/star/webdir/a/.hg/patches/?style=paper">star/webdir/a/.hg/patches</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -457,7 +458,7 @@ </td> </tr> - <tr class="parity1"> + <tr> <td><a href="/star/webdir/b/?style=paper">star/webdir/b</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -470,7 +471,7 @@ </td> </tr> - <tr class="parity0"> + <tr> <td><a href="/star/webdir/c/?style=paper">star/webdir/c</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -483,7 +484,7 @@ </td> </tr> - <tr class="parity1"> + <tr> <td><a href="/star/webdir/notrepo/e/?style=paper">star/webdir/notrepo/e</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -496,7 +497,7 @@ </td> </tr> - <tr class="parity0"> + <tr> <td><a href="/star/webdir/notrepo/f/?style=paper">star/webdir/notrepo/f</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -509,7 +510,7 @@ </td> </tr> - <tr class="parity1"> + <tr> <td><a href="/starstar/webdir/a/?style=paper">starstar/webdir/a</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -522,7 +523,7 @@ </td> </tr> - <tr class="parity0"> + <tr> <td><a href="/starstar/webdir/a/.hg/patches/?style=paper">starstar/webdir/a/.hg/patches</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -535,7 +536,7 @@ </td> </tr> - <tr class="parity1"> + <tr> <td><a href="/starstar/webdir/b/?style=paper">starstar/webdir/b</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -548,7 +549,7 @@ </td> </tr> - <tr class="parity0"> + <tr> <td><a href="/starstar/webdir/b/d/?style=paper">starstar/webdir/b/d</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -561,7 +562,7 @@ </td> </tr> - <tr class="parity1"> + <tr> <td><a href="/starstar/webdir/c/?style=paper">starstar/webdir/c</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -574,7 +575,7 @@ </td> </tr> - <tr class="parity0"> + <tr> <td><a href="/starstar/webdir/notrepo/e/?style=paper">starstar/webdir/notrepo/e</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -587,7 +588,7 @@ </td> </tr> - <tr class="parity1"> + <tr> <td><a href="/starstar/webdir/notrepo/e/e2/?style=paper">starstar/webdir/notrepo/e/e2</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -600,7 +601,7 @@ </td> </tr> - <tr class="parity0"> + <tr> <td><a href="/starstar/webdir/notrepo/f/?style=paper">starstar/webdir/notrepo/f</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -613,7 +614,7 @@ </td> </tr> - <tr class="parity1"> + <tr> <td><a href="/starstar/webdir/notrepo/f/f2/?style=paper">starstar/webdir/notrepo/f/f2</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -626,7 +627,7 @@ </td> </tr> - <tr class="parity0"> + <tr> <td><a href="/astar/?style=paper">astar</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -639,7 +640,7 @@ </td> </tr> - <tr class="parity1"> + <tr> <td><a href="/astar/.hg/patches/?style=paper">astar/.hg/patches</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -652,6 +653,7 @@ </td> </tr> + </tbody> </table> </div> </div> @@ -705,8 +707,9 @@ <th> </th> <th> </th> </tr> + <tbody class="stripes2"> - <tr class="parity0"> + <tr> <td><a href="/t/a/?style=paper">a</a></td> <td>unknown</td> <td>Foo Bar <foo.bar@example.com></td> @@ -719,6 +722,7 @@ </td> </tr> + </tbody> </table> </div> </div> @@ -1078,7 +1082,9 @@ <th> </th> <th> </th> </tr> + <tbody class="stripes2"> + </tbody> </table> </div> </div>