view mercurial/templates/spartan/changeset.tmpl @ 25603:1cac419ab831

hgweb: don't dereference symbolic revision in spartan style Let's make spartan templates use symbolic revision in navigation links. The majority of links (log, filelog, annotate, etc) still use node hashes, and many pages also have permanent link to current node hash (i.e. you can go from /rev/tip to /rev/<tip hash> without manual url editing), so it's safe to update navigation.
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 16 Jun 2015 11:52:10 +0800
parents 9e1f4c65f5f5
children 902148444889
line wrap: on
line source

{header}
<title>{repo|escape}: changeset {node|short}</title>
</head>
<body>

<div class="buttons">
<a href="{url|urlescape}log/{symrev}{sessionvars%urlparameter}">changelog</a>
<a href="{url|urlescape}shortlog/{symrev}{sessionvars%urlparameter}">shortlog</a>
<a href="{url|urlescape}graph{sessionvars%urlparameter}">graph</a>
<a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a>
<a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a>
<a href="{url|urlescape}file/{symrev}{sessionvars%urlparameter}">files</a>
<a href="{url|urlescape}raw-rev/{symrev}">raw</a>
{archives%archiveentry}
<a href="{url|urlescape}help{sessionvars%urlparameter}">help</a>
</div>

<h2><a href="/">Mercurial</a> {pathdef%breadcrumb} / changeset: {desc|strip|escape|firstline|nonempty}</h2>

<table id="changesetEntry">
<tr>
 <th class="changeset">changeset {rev}:</th>
 <td class="changeset"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td>
</tr>
{ifeq(count(parent), '2', parent%changesetparentdiff, parent%changesetparent)}
{child%changesetchild}
{changesettag}
<tr>
 <th class="author">author:</th>
 <td class="author">{author|obfuscate}</td>
</tr>
<tr>
 <th class="date">date:</th>
 <td class="date age">{date|rfc822date}</td>
</tr>
<tr>
 <th class="files">files:</th>
 <td class="files">{files}</td>
</tr>
<tr>
 <th class="description">description:</th>
 <td class="description">{desc|strip|escape|websub|addbreaks|nonempty}</td>
</tr>
</table>

<div id="changesetDiff">
{diff}
</div>

{footer}