MercurialWebTheme

Annotated 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.
paul@2 1
{header}
paul@2 2
<title>{repo|escape} (search)</title>
paul@2 3
</head>
paul@2 4
paul@2 5
<body>
paul@2 6
paul@2 7
<div id="header">
paul@2 8
  <div id="logo"><a href="{url}..{sessionvars%urlparameter}"><img src="{staticurl}mercurial-logo.png" alt="Mercurial logo" /></a></div>
paul@2 9
  <div class="controls">
paul@2 10
    <ul id="navibar">
paul@2 11
    <li><a href="{url}summary{sessionvars%urlparameter}">summary</a></li
paul@2 12
    ><li><a href="{url}shortlog{sessionvars%urlparameter}">shortlog</a></li
paul@2 13
    ><li><a href="{url}changelog{sessionvars%urlparameter}">changelog</a></li
paul@2 14
    ><li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li
paul@2 15
    ><li><a href="{url}files{sessionvars%urlparameter}">files</a></li
paul@2 16
    ><li><form id="searchform" action="{url}log"><span class="container">
paul@2 17
        <span class="hint">Search</span>&nbsp;<input name="rev" id="searchinput" type="text" size="20" />
paul@2 18
      </span>
paul@2 19
      {sessionvars%hiddenformentry}
paul@2 20
      </form>
paul@2 21
    </li>
paul@2 22
    </ul>
paul@2 23
  </div>
paul@2 24
  <div id="pageline"></div>
paul@2 25
</div>
paul@2 26
paul@2 27
<h2>Results</h2>
paul@2 28
paul@2 29
<table>
paul@2 30
  <tbody>
paul@2 31
{entries}
paul@2 32
  </tbody>
paul@2 33
</table>
paul@2 34
paul@2 35
{footer}