view mercurial/templates/paper/diffstat.tmpl @ 14563:81fc9678b018

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.
author Steven Brown <StevenGBrown@gmail.com>
date Thu, 09 Jun 2011 01:19:39 +0800
parents
children c229a5e7511e
line wrap: on
line source

  <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>