MercurialWebTheme

themes/mercurialweb/changeset.tmpl

8:73bdffb4a922
2010-07-10 Paul Boddie Added changeset and "not found" page support. Tidied up the branch indicators. Made the search pop-up hint appear at a different z-index. Insisted that the stylesheet is UTF-8 encoded. Added the repository name as a heading on each page. Adjusted the column width in various entry tables. Added a branch status indicator to branch entries. Updated the copyright information.
     1 {header}     2 <title>{repo|escape} (changeset {node|short})</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}branches{sessionvars%urlparameter}">Branches</a></li    16     ><li><a href="{url}files{sessionvars%urlparameter}">Files</a></li    17     ><li><form id="searchform" action="{url}log"><span class="container">    18         <span class="hint">Search</span>&nbsp;<input name="rev" id="searchinput" type="text" size="20" />    19       </span>    20       {sessionvars%hiddenformentry}    21       </form>    22     </li>    23     </ul>    24   </div>    25   <div id="pageline"></div>    26 </div>    27     28 <h2>{repo|escape}</h2>    29     30 <h3>Changeset</h3>    31     32 <p>    33 <span class="changesetparentlink">{parent%changesetlink}</span>    34 <span class="changeset">{rev}:{node|short}</span>    35 <span class="changesetchildlink">{child%changesetlink}</span>    36 </p>    37     38 <table>    39   <tbody>    40     <tr>    41       <td>{date|age}</td>    42       <td>{author|person}</td>    43       <td class="navigation"><a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a></td>    44       <td width="50%">{desc|strip|escape|addbreaks}</td>    45       <td>{branches%branchtag}{inbranch%inbranchtag}{tags%tagtag}</td>    46     </tr>    47     <tr>    48       <td colspan="5" class="diff">    49         {diff}    50       </td>    51     </tr>    52     <tr>    53       <td colspan="5" class="files">{files}</td>    54     </tr>    55   </tbody>    56 </table>    57     58 {footer}