MercurialWebTheme

themes/mercurialweb/search.tmpl

2:d536199495b4
2010-06-04 Paul Boddie Used primitive formatting of the HTML in order to avoid whitespace issues in the navigation menus. Added a pop-up hint for the search box, and added the search box to other templates. Adjusted table margins. Added support for search box highlighting, adjusting the display properties for the searchform element and the container element inside it. Added elementary search result presentation support. Adjusted the titles of the templates.
     1 {header}     2 <title>{repo|escape} (search)</title>     3 </head>     4      5 <body>     6      7 <div id="header">     8   <div id="logo"><a href="{url}..{sessionvars%urlparameter}"><img src="{staticurl}mercurial-logo.png" alt="Mercurial logo" /></a></div>     9   <div class="controls">    10     <ul id="navibar">    11     <li><a href="{url}summary{sessionvars%urlparameter}">summary</a></li    12     ><li><a href="{url}shortlog{sessionvars%urlparameter}">shortlog</a></li    13     ><li><a href="{url}changelog{sessionvars%urlparameter}">changelog</a></li    14     ><li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li    15     ><li><a href="{url}files{sessionvars%urlparameter}">files</a></li    16     ><li><form id="searchform" action="{url}log"><span class="container">    17         <span class="hint">Search</span>&nbsp;<input name="rev" id="searchinput" type="text" size="20" />    18       </span>    19       {sessionvars%hiddenformentry}    20       </form>    21     </li>    22     </ul>    23   </div>    24   <div id="pageline"></div>    25 </div>    26     27 <h2>Results</h2>    28     29 <table>    30   <tbody>    31 {entries}    32   </tbody>    33 </table>    34     35 {footer}