mercurial/templates/paper/diffstat.tmpl
author Steven Brown <StevenGBrown@gmail.com>
Thu, 09 Jun 2011 01:19:39 +0800
changeset 14563 81fc9678b018
child 19455 c229a5e7511e
permissions -rw-r--r--
paper, coal: define the diffstat templates The templates output the filename, the total number of changes to the file and a bar graph of the adds and removes. The filename is a link into the diff output. The diffstat is not yet displayed, but it can be manually added to the changeset page template.

  <tr class="parity{parity}">
    <td class="diffstat-file"><a href="#l{fileno}.1">{file|escape}</a></td>
    <td class="diffstat-total" align="right">{total}</td>
    <td class="diffstat-graph">
      <span class="diffstat-add" style="width:{addpct}%;">&nbsp;</span>
      <span class="diffstat-remove" style="width:{removepct}%;">&nbsp;</span>
    </td>
  </tr>