Mercurial > hg
view mercurial/templates/paper/search.tmpl @ 24054:fdf7794be41d
hgweb: replace implicit <tbody> with explicit <thead> where appropriate
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.
author | Anton Shestakov <engored@ya.ru> |
---|---|
date | Fri, 06 Feb 2015 15:52:55 +0800 |
parents | c00b156d6e76 |
children | e0c09398c237 |
line wrap: on
line source
{header} <title>{repo|escape}: searching for {query|escape}</title> </head> <body> <div class="container"> <div class="menu"> <div class="logo"> <a href="{logourl}"> <img src="{staticurl|urlescape}{logoimg}" width=75 height=90 border=0 alt="mercurial"></a> </div> <ul> <li><a href="{url|urlescape}shortlog{sessionvars%urlparameter}">log</a></li> <li><a href="{url|urlescape}graph{sessionvars%urlparameter}">graph</a></li> <li><a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a></li> <li><a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a></li> <li><a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a></li> <li><a href="{url|urlescape}help{sessionvars%urlparameter}">help</a></li> </ul> </div> <div class="main"> <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2> <h3>searching for '{query|escape}'</h3> <p> Assuming {modedesc}. {if(showforcekw, '<a href="{url|urlescape}log?rev={query|urlescape}&forcekw=1"> Use {showforcekw}</a> instead.')} {if(showunforcekw, '<a href="{url|urlescape}log?rev={query|urlescape}"> Use {showunforcekw}</a> instead.')} </p> <form class="search" action="{url|urlescape}log"> {sessionvars%hiddenformentry} <p><input name="rev" id="search1" type="text" size="30" value="{query|escape}"></p> <div id="hint">{searchhint}</div> </form> <div class="navigate"> <a href="{url|urlescape}log{lessvars%urlparameter}">less</a> <a href="{url|urlescape}log{morevars%urlparameter}">more</a> </div> <table class="bigtable"> <thead> <tr> <th class="age">age</th> <th class="author">author</th> <th class="description">description</th> </tr> </thead> <tbody class="stripes2"> {entries} </tbody> </table> <div class="navigate"> <a href="{url|urlescape}log{lessvars%urlparameter}">less</a> <a href="{url|urlescape}log{morevars%urlparameter}">more</a> </div> </div> </div> {footer}