mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
48ec2b2e8f
Some templates in paper style use <tbody> elements inside <table> to assign a class to "body" part of that table (in this case, to make rows striped). The problem is that the <tbody> is preceded by <tr> element, which browsers understand as an implicit start of table body, so the following exlicit <tbody> will actually be "nested", which is not valid. Since that first <tr> contains table headers, wrapping it in <thead> is both semantically correct and follows the advertised XHTML 1.1 doctype.
32 lines
795 B
Cheetah
32 lines
795 B
Cheetah
{header}
|
|
<title>Mercurial repositories index</title>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="container">
|
|
<div class="menu">
|
|
<a href="{logourl}">
|
|
<img src="{staticurl|urlescape}{logoimg}" width=75 height=90 border=0 alt="mercurial" /></a>
|
|
</div>
|
|
<div class="main">
|
|
<h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
|
|
|
|
<table class="bigtable">
|
|
<thead>
|
|
<tr>
|
|
<th><a href="?sort={sort_name}">Name</a></th>
|
|
<th><a href="?sort={sort_description}">Description</a></th>
|
|
<th><a href="?sort={sort_contact}">Contact</a></th>
|
|
<th><a href="?sort={sort_lastchange}">Last modified</a></th>
|
|
<th> </th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="stripes2">
|
|
{entries%indexentry}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{footer}
|