mercurial/templates/spartan/changelogentry.tmpl
author Anton Shestakov <av6@dwimlabs.net>
Sun, 26 Nov 2017 13:29:18 +0800
changeset 35131 f38c91c74294
parent 35094 38fe3fe4bbb6
child 35485 1721ce06100a
permissions -rw-r--r--
hgweb: rename the main attribute of instabilities Let's make "instabilities" list contain items with "instability" key as opposed to "name" key. This way it's more explicit and more consistent with the log command-line template.

<table class="logEntry parity{parity}">
 <tr>
  <th class="label"><span class="age">{date|rfc822date}</span>:</th>
  <th class="firstline">{desc|strip|firstline|escape|nonempty}</th>
 </tr>
 <tr>
  <th class="revision">changeset {rev}:</th>
  <td class="node"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td>
 </tr>
 {parent%changelogparent}
 {child%changelogchild}
 {changelogtag}
 <tr>
  <th class="author">author:</th>
  <td class="author">{author|obfuscate}</td>
 </tr>
 <tr>
  <th class="date">date:</th>
  <td class="date">{date|rfc822date}</td>
 </tr>
 {ifeq(phase, 'public', '', '<tr>
  <th class="phase">phase:</th>
  <td class="phase">{phase|escape}</td>
 </tr>')}
 {if(obsolete, '<tr>
  <th class="obsolete">obsolete:</th>
  <td class="obsolete">yes</td>
 </tr>')}
 {ifeq(count(instabilities), '0', '', '<tr>
  <th class="instabilities">instabilities:</th>
  <td class="instabilities">{instabilities%"{instability} "|escape}</td>
 </tr>')}
 <tr>
  <th class="files"><a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a>:</th>
  <td class="files">{files}</td>
 </tr>
</table>